by Jason George (1 Submission)
Category: Sound/MP3
Compatability: VB Script
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
This ActiveX Dll allows you to easily play Mp3 Audio using the Mci Api. You simply create an Audio object with a filename and control the playback through the objects interface. Gives you control over the speed, volume (both left and right) and so on... If enough of you are interested I will gladly expand and improve this project. Comments and suggestions would be greatly appreciated.
API DeclarationsPrivate Declare Function CoCreateGuid Lib "ole32" (id As Any) As Long
Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long
Public Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
Public Declare Function mciGetErrorString Lib "winmm.dll" Alias "mciGetErrorStringA" (ByVal dwError As Long, ByVal lpstrBuffer As String, ByVal uLength As Long) As Long
Download Mp3AudioDll (13 KB)