decoder/Client: add virtual method Ready()

Replaces decoder_initialized().
This commit is contained in:
Max Kellermann
2016-11-18 07:59:01 +01:00
parent fd77acc217
commit 66fb352cca
28 changed files with 73 additions and 79 deletions

View File

@@ -32,7 +32,7 @@
struct FlacDecoder : public FlacInput {
/**
* Has decoder_initialized() been called yet?
* Has DecoderClient::Ready() been called yet?
*/
bool initialized = false;
@@ -55,7 +55,7 @@ struct FlacDecoder : public FlacInput {
:FlacInput(_input_stream, &_client) {}
/**
* Wrapper for decoder_initialized().
* Wrapper for DecoderClient::Ready().
*/
bool Initialize(unsigned sample_rate, unsigned bits_per_sample,
unsigned channels, FLAC__uint64 total_frames);
@@ -77,7 +77,7 @@ private:
void OnVorbisComment(const FLAC__StreamMetadata_VorbisComment &vc);
/**
* This function attempts to call decoder_initialized() in case there
* This function attempts to call DecoderClient::Ready() in case there
* was no STREAMINFO block. This is allowed for nonseekable streams,
* where the server sends us only a part of the file, without
* providing the STREAMINFO block from the beginning of the file