Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Joining WAV files

Status
Not open for further replies.

RussellMorton

Programmer
Feb 17, 2003
10
US
I am using VB6 and the multimedia control. I am trying to play a sequence of wav files with as small a gap as possible between them. I am trying to use two multimedia controls, and que one up while the other is playing.

I cant seem to get the control order correct, also I get different results when I send the "Play" command and the "Sound" command.

I cant seem to get an end of file event with "Sound", while "Play" only works on the first of the two controls.

Help.

Is there a way to "join" the wav files prior to playing them ?

 
There are probably lots of WAV editors out there. If you don't have Adaptec/Roxio Easy CD Creator, which does the job and comes bundled with just about every CD-ROM burner under the sun, search the Web for a WAV editor.
 

From an old program that uses the MMControl this is how I did it in the...
[tt]
Private Sub MMControl1_Done(NotifyCode As Integer)

With MMControl1
.Command = "Close"
.Notify = False
.Wait = True
.Shareable = False
.DeviceType = "WaveAudio"
.FileName = List3.List(SelectedWaveCount)
.Command = "Open"
.Command = "Play"
End With
End Sub
[/tt]

So in short before you can play another sound you need to close the device then open and then play the device (wav).

You do not however have to set all the properties like I have (but it didn't hurt) and where you see list3 above you can put your list/array/collection of path file names.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top