Computing.Net > Forums > Programming > Wave files in VB6

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Wave files in VB6

Reply to Message Icon

Name: BaBa
Date: January 12, 2003 at 10:03:45 Pacific
OS: win98
CPU/Ram: 98M
Comment:

Hi,

I would like to know how I can play a wave file over and over and over none stop. using the MCI control in VB6.
Please, help!
anything is appreciated



Sponsored Link
Ads by Google

Response Number 1
Name: Karl
Date: January 12, 2003 at 18:13:00 Pacific
Reply:

This is using API but it works just fine.

These Declarations:
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Const SND_ASYNC = &H1
Const SND_NODEFAULT = &H2
Const SND_LOOP = &H8

With These Calls:

To Start:
sndPlaySound *Your Sound's FilePath*, SND_ASYNC Or SND_LOOP Or SND_NODEFAULT

To Stop:
sndPlaySound "NULL", SND_ASYNC Or SND_LOOP Or SND_NODEFAULT


0

Response Number 2
Name: BelAnWel
Date: January 13, 2003 at 16:19:22 Pacific
Reply:

can u also use this for .omg and .mp3 audio formats?


0

Response Number 3
Name: BaBa
Date: January 14, 2003 at 14:57:24 Pacific
Reply:

Hi,

Thanks guys for you responses.

Karl, you example worked fine, I love it. Thank you!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


VC++ Speech(TTS) prob. What exactly is System.in...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Wave files in VB6

Wave files in VB6 www.computing.net/answers/programming/wave-files-in-vb6/4965.html

How To Read/Write File in VB6 www.computing.net/answers/programming/how-to-readwrite-file-in-vb6/7105.html

concatenating wave files in VB www.computing.net/answers/programming/concatenating-wave-files-in-vb/6272.html