Michael: If you're on a Mac, and If you're comfortable with simple command line programming, have you considered using the "afplay" command? It's as about as low level as it gets: Multiple calls separated by semicolons will play sequentially (i.e. 'afplay song1.mp3 ; afplay song2.mp3'). Invoking afplay in the background will mix (i.e. 'afplay song1.mp3 & ; afplay song2.mp3 &'). Maybe that's all you need? - Rob On 2010Mar29, at 08:26, Michael Hammond wrote:
hello chuckists!
i have a quick question for all you audio programmers out there. so i'm looking for the quickest, cheapest way possible to play large quantities of audio (preferably wav or aif files). i have a project where i need to be able to have up to 20 five minute audio files loaded and ready to play at once (though only 5-8 of those will actually play at any one time). i looked into using the SndBuf object (perhaps naively) but quickly realized that the initial load time would be prohibitive. is there a way to incrementally load a file into SndBuf without causing unwanted stutters? or would WvIn be a better choice?
also, i don't really need to load the file for editing or manipulation. all i am looking to do is to play the files simultaneously. if there's not a quick, cheap way to do this in ChucK, i'm open to using other languages. unfortunately, i'm not as experienced at accomplishing audio tasks in other languages as i am in chuck, so i'm not sure how this would be done. any help at all would be greatly appreciated.
thanks!
michael _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users