#include <dec_mp3.h>
Inherits MuseDec.
Inheritance diagram for MuseDecMp3:
Instances of the Mp3 codec (splay implementation) are created internally by the Channel class, publicly available interface to the creation is in Stream_mixer::add_to_playlist.
Definition at line 45 of file dec_mp3.h.
Public Member Functions | |
int | load (char *file) |
open file in decoder | |
bool | seek (float pos) |
seek to a position | |
void | clean () |
IN_DATATYPE * | get_audio () |
decode a chunk of channel audio |
|
decode a chunk of channel audio Decode another chunk of audio for the channel at the current position, this function is implementing the low-level decoder functionalities to obtain the audio pcm to be mixed. The audio will be then resampled at a common rate and mixed by MuSE. This is a pure virtual function: needs to be implemented in decoders.
Implements MuseDec. Definition at line 113 of file dec_mp3.cpp. |
|
open file in decoder Open up a filename (full path) and makes it ready for decoding, the filename or url can be formed in different ways, depending on the decoder implementation. This is a pure virtual function: needs to be implemented in decoders.
Implements MuseDec. Definition at line 46 of file dec_mp3.cpp. |
|
seek to a position Seek position over the audio data available to an opened channel. This operation is only possible if the channel is seekable (see the flag in this class and the return code of MuseDec::load). This is a pure virtual function: needs to be implemented in decoders.
Implements MuseDec. Definition at line 193 of file dec_mp3.cpp. |