One thing that i think could be added to the Sound class now which would
help in creating audio applications in flash is to have a 'polyphony'
setting.
if i make a new sound object and want to control how many voices it uses
it would be great to just say :
var snd:Sound = new Sound();
snd.polyphony = 1;
and know that every time i call play it will automatically cut the last
playing sample, rather than having to call stop.
Similarly i could use a higher polyphony to control how many channels
that sound object can use before it starts to re-use old ones when play
is called.
The problem is that when too many samples are playing the whole audio
system just shuts down.
Also what would be handy is to get a report on how many channels are in
use and how many are spare, maybe a couple of static functions
Sound.channelsInUse and Sound.availableChannels
so at any time i can find out :
var spare:Number = Sound.availableChannels - Sound.channelsInUse;
and limit the creation of sound channels to have certain polyphony so i
dont overload the system.
just some more ideas that would help in making audio applications :)
thanks,
Martin
Thank you everyone for the great response. I will put together a
summary of
this conversation and respond or post it to my blog for your approval. I
want to make sure it's a fair and unbias (as much as possible)
representation of the developer community before I send it off.
Thanks again!
Tyler
--
Martin Wood
http://relivethefuture.com/choronzon
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders