int Mp3Stop();
Halts Mp3 playback. No parameter is required, since only a single MP3 file may be played at a time.
Return Value
Returns zero if successful.
Remarks
Mp3Stop() halts MP3 playback.
Availability
Available in DragonFireSDK 1.1 and later.
Example
The example below loads a file called "Soundtrack.mp3" and calls Mp3Loop() to play back the file infinitely. Mp3Stop() is called in AppExit() to halt playback.
#include "DragonFireSDK.h"
int Mp3Handle;
void AppMain() { Mp3Handle = Mp3Add("Soundtrack.mp3"); Mp3Loop(Mp3Handle); }
void AppExit() { Mp3Stop(Mp3Handle); }
void OnTimer() {
} |