0

Hi

Does anyone know how to playing a set of short WAV files without delay?

I was using the following, but there is a delay in-between.

PlaySound("a.wav",NULL,NULL);//PLAY WAV SOUND ONCE
PlaySound("b.wav",NULL,NULL);//PLAY WAV SOUND ONCE


or I need to concatnate a few sets of short WAV files into one descriptor so that I can play them smoothly without delay.
If so, how to?


Thanks in advance.

Edited by jjyuyujj: n/a

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by pseudorandom21
0

Does your PlaySound() function also load the sound file into memory?

If it does then you should load them before then use that to just play them.

0

do you mean that I need to load the several wave files (in this case, a.wav, b.wav) into the memory first.

then, I can playsound() on them without any delay?


I've tried to use SND_ASYNC parameter, i.e.

PlaySound("a.wav",NULL,SND_ASYNC);//PLAY WAV SOUND ONCE
PlaySound("b.wav",NULL,SND_ASYNC);//PLAY WAV SOUND ONCE

however, the result is b.wav is played when a.wav hasn't finished.

any help please?

Edited by jjyuyujj: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.