PDA

Click to See Complete Forum and Search --> : Playing Sounds


n1s
Nov 12th, 1999, 08:03 PM
I really need this function for an app i am working on, i am using VB 3.00

does anyone know what sound files it supports?

and a code to inport a sound for vb 3.00

please someone

and if anyone can a code to play a random sound file

thanx

CyberCarsten
Nov 12th, 1999, 08:30 PM
I'm using VB5, so i don't know if this works with VB3.

Put the Microsoft ActiveMovie Control on your form and type the following code in Form1's code window:

ActiveMovie1.AutoStart = True
ActiveMovie1.FileName = "x:\sound\sound.wav"

/ CyberCarsten
VB Programmer

GatesKeeper
Nov 13th, 1999, 02:03 AM
I have a *.bas file that will allow you to do it just by typing

playwav(*:\filedir\filename.wav)

If you would like it email me at gateskeeper@geocities.com