*/
Do you receive the Programmer's Heaven newsletter? If not, why not subscribe?
*/

View \WAVEPLAY.BAS

Simple VB Code to play WAV files using the Windows API

Submitted By: Unknown
Rating: (Not rated) (Rate It)


Attribute VB_Name = "Module1"
OPTION Explicit
'Basic Wave Playing by J W Lehman
DECLARE FUNCTION sndPlaySound Lib "MMSYSTEM.DLL" (BYVAL lpszSoundName$, BYVAL wFlags%) AS INTEGER
   Global CONST SND_SYNC = &H0
   Global CONST SND_ASYNC = &H1
   Global CONST SND_NODEFAULT = &H2
   Global CONST SND_LOOP = &H8
   Global CONST SND_NOSTOP = &H10

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.