diff --git a/src/engine/enginebase.cpp b/src/engine/enginebase.cpp index bb02fb751..20894039d 100644 --- a/src/engine/enginebase.cpp +++ b/src/engine/enginebase.cpp @@ -48,7 +48,6 @@ Engine::Base::Base() rg_compression_(true), buffer_duration_nanosec_(4000), buffer_min_fill_(33), - mono_playback_(false), fadeout_enabled_(true), crossfade_enabled_(true), autocrossfade_enabled_(false), @@ -123,8 +122,6 @@ void Engine::Base::ReloadSettings() { fadeout_pause_duration_ = s.value("FadeoutPauseDuration", 250).toLongLong(); fadeout_pause_duration_nanosec_ = (fadeout_pause_duration_ * kNsecPerMsec); - mono_playback_ = s.value("monoplayback", false).toBool(); - s.endGroup(); } diff --git a/src/engine/enginebase.h b/src/engine/enginebase.h index 6c9506dfa..3c9c117d3 100644 --- a/src/engine/enginebase.h +++ b/src/engine/enginebase.h @@ -188,8 +188,6 @@ signals: quint64 buffer_duration_nanosec_; int buffer_min_fill_; - bool mono_playback_; - // Fadeout bool fadeout_enabled_; bool crossfade_enabled_; diff --git a/src/engine/gstengine.cpp b/src/engine/gstengine.cpp index 8b8d38811..cd9bf4b31 100644 --- a/src/engine/gstengine.cpp +++ b/src/engine/gstengine.cpp @@ -807,7 +807,6 @@ shared_ptr GstEngine::CreatePipeline() { ret->set_replaygain(rg_enabled_, rg_mode_, rg_preamp_, rg_compression_); ret->set_buffer_duration_nanosec(buffer_duration_nanosec_); ret->set_buffer_min_fill(buffer_min_fill_); - ret->set_mono_playback(mono_playback_); ret->AddBufferConsumer(this); for (GstBufferConsumer *consumer : buffer_consumers_) { diff --git a/src/engine/gstenginepipeline.cpp b/src/engine/gstenginepipeline.cpp index 733ec2faa..17d5e506a 100644 --- a/src/engine/gstenginepipeline.cpp +++ b/src/engine/gstenginepipeline.cpp @@ -76,7 +76,6 @@ GstEnginePipeline::GstEnginePipeline(GstEngine *engine) buffer_duration_nanosec_(1 * kNsecPerSec), buffer_min_fill_(33), buffering_(false), - mono_playback_(false), segment_start_(0), segment_start_received_(false), end_offset_nanosec_(-1), @@ -154,10 +153,6 @@ void GstEnginePipeline::set_buffer_min_fill(int percent) { buffer_min_fill_ = percent; } -void GstEnginePipeline::set_mono_playback(bool enabled) { - mono_playback_ = enabled; -} - bool GstEnginePipeline::InitDecodeBin(GstElement *decode_bin) { if (!decode_bin) return false; diff --git a/src/engine/gstenginepipeline.h b/src/engine/gstenginepipeline.h index d618fe3c3..13a2291c7 100644 --- a/src/engine/gstenginepipeline.h +++ b/src/engine/gstenginepipeline.h @@ -72,7 +72,6 @@ class GstEnginePipeline : public QObject { void set_replaygain(bool enabled, int mode, float preamp, bool compression); void set_buffer_duration_nanosec(qint64 duration_nanosec); void set_buffer_min_fill(int percent); - void set_mono_playback(bool enabled); // Creates the pipeline, returns false on error bool InitFromUrl(const QByteArray &media_url, const QUrl original_url, qint64 end_nanosec); @@ -211,8 +210,6 @@ signals: int buffer_min_fill_; bool buffering_; - bool mono_playback_; - // These get called when there is a new audio buffer available QList buffer_consumers_; QMutex buffer_consumers_mutex_;