How to play multiple .wav files simultaneously in delphi

后端 未结 6 742
梦毁少年i
梦毁少年i 2021-01-03 14:54

I wish to multiple .wav files simultaneously in delphi.

When I open and plat the first things are fine. However the second one causes a error when it tries to open.

6条回答
  •  囚心锁ツ
    2021-01-03 15:18

    i think we can using

    sndPlaySound('filename1.wav',SND_SYN OR SND_NODEFAULT);
    sndPlaySound('filename2.wav',SND_SYN OR SND_NODEFAULT);
    sndPlaySound('filename3.wav',SND_SYN OR SND_NODEFAULT);
    sndPlaySound('filename4.wav',SND_SYN OR SND_NODEFAULT);
    

提交回复
热议问题