Play sounds simultaneously? Topic is solved
Play sounds simultaneously?
Hi everyone. I cant figure out how to play multiple sounds at once. I have short sounds (less than 1 second) that need to play and overlap. Any ideas how to do this? Code samples would be helpful.
Re: Play sounds simultaneously?
i think this will work for you, but I didn't test it:
Code: Select all
FileRead,Sound,*c chimes.wav
PlaySoundAsync(Sound)
PlaySoundAsync( ByRef Sound ) {
Return DllCall( "winmm.dll\PlaySound" ( A_IsUnicode ? "W" : "A" ), UInt,&Sound, UInt,0, UInt, 0x7 )
}
EitherMouse - Multiple mice, individual settings . . . . www.EitherMouse.com . . . . forum . . . .
Re: Play sounds simultaneously? Topic is solved
That didn't work for me Garble.
I tried this:
DllCall( "winmm.dll\PlaySound", AStr,"C:\Users\barney\Desktop\minimap\left.wav", UInt,0, UInt, 0)
DllCall( "winmm.dll\PlaySound", AStr,"C:\Users\barney\Desktop\minimap\right.wav", UInt,0, UInt, 0)
Finishes playing the first sound and then plays the second.
I tried this:
DllCall( "winmm.dll\PlaySound", AStr,"C:\Users\barney\Desktop\minimap\left.wav", UInt,0, UInt, 0)
DllCall( "winmm.dll\PlaySound", AStr,"C:\Users\barney\Desktop\minimap\right.wav", UInt,0, UInt, 0)
Finishes playing the first sound and then plays the second.
Who is online
Users browsing this forum: jaka1 and 139 guests