![]() That shouldīe " type waveaudio" if you are opening a (.wav) audio file. In your open command you are describing the device type as " type mpegvideo". The PlaySound function in winmm.dll expects 32-bit arguments To do so will result in stack corruption, as Long is 64-bits in VB. NET then "Long" must be replaced with "Integer". (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) _Īppears to have been taken from an example used with VB6. Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" _ wav files, I feel I should point out a change that mayīe needed when using the. Important in such cases to be very specific, as "doesn't work" could meanįor the benefit of others who might wish to try using your earlier codeĮxamples to play. ![]() You just said "it doesn't work" without elaborating. I don't see where you described *exactly* what was happening when you tried It seems likely that theįailures were due to the type of file you were trying to play. Since you appear satisfied with the last solution you posted, the code in yourĮarlier attempts need not be investigated further. MciSendString("setaudio myWAV volume to "
0 Comments
Leave a Reply. |