[osflash] play back sound from a byte array

Brooks Andrus brooks.andrus at gmail.com
Mon Dec 11 08:40:52 EST 2006


Yah, one of the C++ in our shop wants to rewrite a C++ thick client in 
AS3, but a piece of the current client pulls down a live audio stream 
from an Asterisk telephony server. So the issue is the data is a stream 
of packets rather than a url to a file.

Writing the low level decoding isn't an issue, but finding a way to 
"trick" flash into treating raw bytes as sound is an issue. He's played 
around with the hack that's explored on flashcodersbrighton 
<http://www.flashcodersbrighton.org/wordpress/?p=9>, but the choppiness 
of playback is a show stopper.

If anyone is aware of optimizations or other techniques which would make 
this work, I'd be appreciative.

Brooks


John Grden wrote:
> hey Brooks, are you trying to simply load external mp3's and don't
> care about whether it's streamed or not?  what is it you're trying to
> do exactly?
>
> On 12/8/06, Brooks Andrus <brooks.andrus at gmail.com> wrote:
>   
>> Anyone if there's any way to play back audio from a byte array? I'm
>> basically looking for the ability to play back an audio stream from a
>> server without a Flash Media server.
>>
>> Regards,
>>
>> Brooks
>>
>> _______________________________________________
>> osflash mailing list
>> osflash at osflash.org
>> http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>>     
>
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20061211/793720e8/attachment.htm


More information about the osflash mailing list