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
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
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!
Summary: Hi, I would like to know if there is a way to compare two wave files in VB6? If Wave1=Wave2 then Do this else Do that end if The above code is not VB6. It is a repesentation of what I want to do. plea...
Summary: Carven: To read from a file in VB6, try this: Private Sub Reading_Click() Dim variable1 As String Open "c:\My Documents\sample.txt" For Input As #1 Input #1, variable1 Text1.Text = variabl...
Summary: Can anybody help me to know "how to concatenate two wave files and play as a single wavefile in VB". I have tried playing a single wave file in VB using playSound(). ...