Tema: Sonidos
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/06/2010, 09:15
Avatar de XYON126
XYON126
 
Fecha de Ingreso: abril-2006
Mensajes: 272
Antigüedad: 18 años, 1 mes
Puntos: 0
Respuesta: Sonidos

Cita:
Iniciado por pkj Ver Mensaje
Puedes usar sndPlaySound

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

Private Sub PlayFile(byVal FileName As String)
sndPlaySound FileName, SND_ASYNC Or SND_NODEFAULT
End Sub

Saludos
Hola pkj!

Muchas gracias pero no entiendo bien el codigo o como aplicarlo, veo que haces referencia a winmm.dll pero ¿Que es el sndPlaySound, donde encuentro la Dll, etc? podrias explicarte algo mas, recuerda que soy novato aún.

Un saludo