diff options
Diffstat (limited to 'src/decoder/plugins/FlacCommon.hxx')
-rw-r--r-- | src/decoder/plugins/FlacCommon.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/decoder/plugins/FlacCommon.hxx b/src/decoder/plugins/FlacCommon.hxx index c33ca6e47..5f8c21b5e 100644 --- a/src/decoder/plugins/FlacCommon.hxx +++ b/src/decoder/plugins/FlacCommon.hxx @@ -27,6 +27,7 @@ #include "FlacInput.hxx" #include "FlacPcm.hxx" #include "../DecoderAPI.hxx" +#include "util/ConstBuffer.hxx" #include <FLAC/stream_decoder.h> @@ -41,6 +42,12 @@ struct FlacDecoder : public FlacInput { */ bool unsupported = false; + /** + * The kbit_rate parameter for the next + * DecoderBridge::SubmitData() call. + */ + uint16_t kbit_rate; + FlacPcmImport pcm_import; /** @@ -51,6 +58,13 @@ struct FlacDecoder : public FlacInput { Tag tag; + /** + * Decoded PCM data obtained by our libFLAC write callback. + * If this is non-empty, then DecoderBridge::SubmitData() + * should be called. + */ + ConstBuffer<void> chunk = nullptr; + FlacDecoder(DecoderClient &_client, InputStream &_input_stream) :FlacInput(_input_stream, &_client) {} |