Tema: Sonidos
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/06/2010, 07:04
Avatar de pkj
pkj
 
Fecha de Ingreso: julio-2006
Ubicación: Órbita sincrónica
Mensajes: 899
Antigüedad: 17 años, 9 meses
Puntos: 29
Respuesta: Sonidos

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
__________________
No hay preguntas tontas, solo gente estup..., ¡No!, ¿como era? No hay gente que pregunte a tontos... ¡Nooo!... ¡Vaya cabeza!