G
Guest
Hello,
I have a question for you guys. I am making a program that plays individual
note sound files. Right now I am using .wav files and have it working using:
Public Declare Function PlaySoundW Lib "coredll.dll" Alias "PlaySoundW"
(ByVal lpszName As String, ByVal hModule As Integer, ByVal dwFlags As
Integer) As Integer
and I call this function 6 times in a row to play the sound files. However,
the way this works is that it will play one sound file, and once that file is
finished, then it will play the next, and so on. So you only hear one note
at a time. I don't want this. I want to make it so that it will play all 6
files at once. Or at least one instantly after the other but in a way where
they overlap so you are hearing all 6 notes together at one given point in
time. Do I need to declare 6 different functions so they can all be going at
the same time? Or would that even work since it would still be accessing the
same .dll?
Please help, thanks so much!
-Tim
I have a question for you guys. I am making a program that plays individual
note sound files. Right now I am using .wav files and have it working using:
Public Declare Function PlaySoundW Lib "coredll.dll" Alias "PlaySoundW"
(ByVal lpszName As String, ByVal hModule As Integer, ByVal dwFlags As
Integer) As Integer
and I call this function 6 times in a row to play the sound files. However,
the way this works is that it will play one sound file, and once that file is
finished, then it will play the next, and so on. So you only hear one note
at a time. I don't want this. I want to make it so that it will play all 6
files at once. Or at least one instantly after the other but in a way where
they overlap so you are hearing all 6 notes together at one given point in
time. Do I need to declare 6 different functions so they can all be going at
the same time? Or would that even work since it would still be accessing the
same .dll?
Please help, thanks so much!
-Tim