| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
Wave files in VB6
|
Original Message
|
Name: BaBa
Date: January 12, 2003 at 10:03:45 Pacific
Subject: Wave files in VB6 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
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Karl
Date: January 12, 2003 at 18:13:00 Pacific
|
Reply: (edit)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
Report Offensive Follow Up For Removal
|

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