This project has moved. For the latest updates, please go here.

play multiple wave waves in parallel

Nov 4, 2014 at 6:10 AM
Hi,

I try this to play multiple wave file parallel with ASIO:

create a WaveFileReader for the first file,
create a WaveFileReader for the second file,
call the WaveOut's Init function with the first WaveFileReader
call the WaveOut's Init function with the second WaveFileReader
call WaveOut's Play() with the first reader
call WaveOut's Play() with the second reader

first file routes to output 1 + 2 , second file routes t output 3 + 4

on a FA-66 Sound System with firewire it seems to run good, on a ESI Maya 44 USB soundsystem the second Wave runs about 100 ms later than the first.

Any ideas to get that work better (I need it for 4 5- wave file in parallel ..)

Jurgen
Coordinator
Nov 11, 2014 at 3:55 PM
You could try actually using AsioOut with a MultiplexingWaveProvider to combine the two WaveFileReaders into a single 4 channel stream.