54 virtual void openFile(
const string& pathName,
const string& fileName) = 0;
Audio decoder base class.
virtual void openFile(const string &pathName, const string &fileName)=0
Open a local file.
static constexpr uint8_t CHANNELS_NONE
virtual void reset()=0
Resets this audio decoder, if a stream was open it will be rewinded.
AudioDecoder()
Constructor.
virtual ~AudioDecoder()
Destructor.
uint8_t getChannels() const
uint8_t getBitsPerSample() const
static constexpr uint32_t SAMPLERATE_NONE
uint64_t getSamples() const
virtual int64_t readFromStream(ByteBuffer *data)=0
Read raw PCM data from stream.
uint32_t getSampleRate() const
static constexpr uint8_t BITSPERSAMPLES_NONE
static constexpr uint64_t SAMPLES_NONE
virtual void close()=0
Closes the audio file.