Functions | |
int | VsPlayerInit (void) |
Initialize the VS1001 hardware interface. | |
int | VsPlayerReset (u_short mode) |
Software reset the decoder. | |
int | VsPlayerSetMode (u_short mode) |
Set mode register of the decoder. | |
int | VsPlayerKick (void) |
Start playback. | |
int | VsPlayerStop (void) |
Stops the playback. | |
int | VsPlayerFlush (void) |
Sets up decoder internal buffer flushing. | |
u_char * | VsBufferInit (u_short size) |
Initialize the MP3 data buffer. | |
u_char * | VsBufferReset (void) |
Reset all MP3 data buffer pointers. | |
u_char * | VsBufferRequest (u_short *sizep) |
Request MP3 data buffer space. | |
u_char * | VsBufferAcknowledge (u_short nbytes) |
Acknowledge filled buffer space. | |
u_short | VsBufferAvailable (void) |
Returns total free buffer space. | |
u_short | VsPlayTime (void) |
Returns play time since last reset. | |
u_char | VsGetStatus (void) |
Returns status of the player. | |
u_short | VsMemoryTest (void) |
Initialize decoder memory test and return result. | |
int | VsSetVolume (u_char left, u_char right) |
Set volume. | |
int | VsBeep (u_char fsin, u_char ms) |
Sine wave beep. |
|
Sine wave beep.
|
|
Acknowledge filled buffer space.
|
|
Returns total free buffer space.
|
|
Initialize the MP3 data buffer.
|
|
Request MP3 data buffer space.
|
|
Reset all MP3 data buffer pointers.
|
|
Returns status of the player.
|
|
Initialize decoder memory test and return result.
|
|
Sets up decoder internal buffer flushing. This routine will set up internal VS buffer flushing, unless the buffer is already empty and starts the playback if necessary. The internal VS buffer is flushed in VsPlayerFeed() at the end of the stream.
|
|
Initialize the VS1001 hardware interface.
|
|
Start playback. This routine will send the first MP3 data bytes to the decoder, until it is completely filled. The data buffer should have been filled before calling this routine.
|
|
Software reset the decoder. This function is typically called after VsPlayerInit() and at the end of each track.
|
|
Set mode register of the decoder.
|
|
Stops the playback. This routine will stops the MP3 playback, VsPlayerKick() may be used to resume the playback.
|
|
Returns play time since last reset.
|
|
Set volume.
|