VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Plays Wave files, Midi files, AVI Video files...(and even MP3s if you've got WinAmp installed) :) Y

Matthew Ralston  (1 Submission)   Sound/MP3   Visual Basic 5.0   Unknown Difficulty   Tue 28th March 2000   Mon 8th February 2021

Plays Wave files, Midi files, AVI Video files...(and even MP3s if you've got WinAmp installed) :) You should put all the code below (the

API Declarations


' ~~~~~~~~~~~~~~~~
'
' Declare As follows:
'
' Dim MMPlayer As New clsMultimedia
'
'
' Properties:
'
' Filename (String The media file currently open)
' Wait (True/False If the code should pause until until the file has finished playing)
' Length (Integer The length (in seconds?) of the media file)
' Position (Integer The position of the 'playback head')
' Status (String What's happening to the media file...playing, stopped etc.)
'
'
'
'
'
' Methods:
'
' mmOpen(Filename) (Open a media file specified by "Filename")
' mmClose() (Close the currently open media file)
' mmPlay (Plays the currently open media file)
' mmPause() (Pause the currently playing media file)
' mmStop (Stop the currently playing media file)
' mmSeek(Time) (Move the playback head to a position specified by "Time")

Option Explicit

Private sAlias As String

Private sFilename As String
Private nLength As Single

Private nPosition As Single
Private sStatus As Single
Private bWait As Boolean

Private 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


Rate Plays Wave files, Midi files, AVI Video files...(and even MP3s if you've got WinAmp installed) :) Y (2(2 Vote))
Plays Wave files, Midi files, AVI Video files...(and even MP3s if you've got WinAmp installed) :) Y.bas

Plays Wave files, Midi files, AVI Video files...(and even MP3s if you've got WinAmp installed) :) Y Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters