PDA

View Full Version : Multiple wav playback



cueMan
14th September 2010, 12:13
Hi,

Is it possible to play multiple wav files at the same time? I have done a program which plays sounds from keyboard. It is based on the spectrum -example code with almost exactly identical playback code and wav -file handling. Now every new sound overruns the previous' playback. Any ideas how to enable some kind of polyphony?

tbscope
14th September 2010, 12:21
Try setting an audio output for each file

cueMan
14th September 2010, 16:51
Hey thanks! Actually I tried that previously without results but your answer reminded me that each sound should of course have their own QBuffer. With these two changes I am now able to play these sounds without them interrupting each other! :cool: