PowerBuilder Function Play Sound gf_play_sound
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
///////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Function Name : gf_play_sound // Argument Name : (None) // Return Type : (None) /////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Function Long sndPlaySound (String lpszSoundName, Long uFlags) Library "winmm.dll" Alias For "sndPlaySoundA" // Function Long waveOutGetNumDevs() Library "winmm.dll" Alias For "waveOutGetNumDevs" /////////////////////////////////////////////////////////////////////////////////////////////////////////////// UInt lui_NumDevs UInt ll_modeofplay lui_NumDevs = WaveOutGetNumDevs() If lui_NewDevs > 0 Then sndPlaySound ("filename.wav", ll_modeofplay) End If |
Good Luck!
Subscribe
Login
0 Comments
Oldest