diff options
author | Max Kellermann <max@musicpd.org> | 2016-11-18 07:13:35 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-11-18 09:03:39 +0100 |
commit | fd77acc217340aeee3dc80173b6000815ebb709f (patch) | |
tree | 05c4ef7d1c604efd7315abc32b9e962ed1361402 /src/decoder/plugins/FluidsynthDecoderPlugin.cxx | |
parent | 595d1942cb795adcc0c037389aeb8238c788a3c0 (diff) |
decoder/Client: new interface which wraps struct Decoder
Prepare for a Decoder API redesign based on an abstract class with
virtual methods.
Diffstat (limited to 'src/decoder/plugins/FluidsynthDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/FluidsynthDecoderPlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/plugins/FluidsynthDecoderPlugin.cxx b/src/decoder/plugins/FluidsynthDecoderPlugin.cxx index c40beff8a..1ec7a68eb 100644 --- a/src/decoder/plugins/FluidsynthDecoderPlugin.cxx +++ b/src/decoder/plugins/FluidsynthDecoderPlugin.cxx @@ -87,7 +87,7 @@ fluidsynth_init(const ConfigBlock &block) } static void -fluidsynth_file_decode(Decoder &decoder, Path path_fs) +fluidsynth_file_decode(DecoderClient &client, Path path_fs) { char setting_sample_rate[] = "synth.sample-rate"; /* @@ -160,7 +160,7 @@ fluidsynth_file_decode(Decoder &decoder, Path path_fs) MPD core */ const AudioFormat audio_format(sample_rate, SampleFormat::S16, 2); - decoder_initialized(decoder, audio_format, false, + decoder_initialized(client, audio_format, false, SignedSongTime::Negative()); DecoderCommand cmd; @@ -177,7 +177,7 @@ fluidsynth_file_decode(Decoder &decoder, Path path_fs) if (ret != 0) break; - cmd = decoder_data(decoder, nullptr, buffer, sizeof(buffer), + cmd = decoder_data(client, nullptr, buffer, sizeof(buffer), 0); if (cmd != DecoderCommand::NONE) break; |