منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : تشغفيل ملفات .wav
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
كاتب الموضوع : AhmedEssawy

تشغفيل ملفات .WAV


كود :
Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long


Public Function Sound(pathfile As String)
SoundPlay = PlaySound(pathfile, 0&, &H1)
End Function
'All you have to do is call Sound, and give dir
'vbcode.com