Multiple Sound Events

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu