Como hacer que se repita un sonido
Publicado por Danos (50 intervenciones) el 04/12/2005 01:27:24
TENGO ESTO EN EL CODIGO
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
(BOTON DE REPRODUCIR SONIDO)
'reproducir sonido
sndPlaySound "C:\nombre.wav", &H1
(BOTON DE DETENER SONIDO)
' detener el sonido
sndPlaySound vbNullString, 0
Y LO QUE QUIERO QUE HAGA ES QUE EL SONIDO SE REPRODUSCA HASTA DENENERLO CON EL BOTON DE DETENER EL SONIDO.
COMO LE HAGO? PENSE EN UTILIZAR UN FOR PERO NO SE COMO, SI ALGUIEN ME PUEDE AYUDAR SE LOS AGRADECERE.
SI PUEDEN PONER EL CODIGO SERIA DE MUCHISIMA AYUDA.
GRACIAS POR TODO
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
(BOTON DE REPRODUCIR SONIDO)
'reproducir sonido
sndPlaySound "C:\nombre.wav", &H1
(BOTON DE DETENER SONIDO)
' detener el sonido
sndPlaySound vbNullString, 0
Y LO QUE QUIERO QUE HAGA ES QUE EL SONIDO SE REPRODUSCA HASTA DENENERLO CON EL BOTON DE DETENER EL SONIDO.
COMO LE HAGO? PENSE EN UTILIZAR UN FOR PERO NO SE COMO, SI ALGUIEN ME PUEDE AYUDAR SE LOS AGRADECERE.
SI PUEDEN PONER EL CODIGO SERIA DE MUCHISIMA AYUDA.
GRACIAS POR TODO
Valora esta pregunta


0