Multiple Sound Events
- Posted by president at insight-concepts.com Jun 03, 2001
- 382 views
Hi All, I have a minor problem I need help with. I have a wav file that loops in the background of a program. But when I trigger another wav simultaneously, the looped wav cancels out. How can I make both wavs play without interrupting each other? I have some sample code below. procedure onLoad_TestWin() atom cstring if length("test.wav") != 0 then cstring = acquire_mem(0, "test.wav" ) soundresult = w32Func( xPlaySound, {cstring, 0, #20009}) release_mem(cstring) end procedure procedure onClick_SecondSound() integer sounds sounds = playSound("test2.wav") end procedure Thank, Chris Long Live Euphoria