Data Structures | |
struct | pgeMp3Info |
Functions | |
int | pgeMp3Play (const char *filename) |
int | pgeMp3PlayMemory (unsigned char *data, unsigned int size) |
void | pgeMp3Stop (void) |
void | pgeMp3Pause (void) |
void | pgeMp3Loop (int loop) |
int | pgeMp3Volume (int volume) |
short * | pgeMp3GetAudioData (void) |
int | pgeMp3IsPlaying (void) |
pgeMp3Info | pgeMp3GetInfo (void) |
short* pgeMp3GetAudioData | ( | void | ) |
Get the current output data of the MP3
pgeMp3Info pgeMp3GetInfo | ( | void | ) |
int pgeMp3IsPlaying | ( | void | ) |
Check if a MP3 is playing
void pgeMp3Loop | ( | int | loop | ) |
Set the loop status of the MP3 playback
loop | - Set to 1 to loop, 0 to playback once |
void pgeMp3Pause | ( | void | ) |
Pause a playing MP3 file
First call to this function will pause, second call will resume.
int pgeMp3Play | ( | const char * | filename | ) |
Play an MP3 file
filename | - Path of the file to play. |
int pgeMp3PlayMemory | ( | unsigned char * | data, | |
unsigned int | size | |||
) |
Play an MP3 file (from memory)
data | - Pointer to the start of the MP3 data. | |
size | - Size of the data in bytes. |
void pgeMp3Stop | ( | void | ) |
Stop playing a loaded MP3 file
int pgeMp3Volume | ( | int | volume | ) |
Set the volume of the MP3 playback
volume | - The new volume. Accepted values 0 to 100000. |