mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-05 12:56:52 +01:00
Remove broken mono playback setting
This commit is contained in:
parent
21970f3065
commit
6e463d1de3
@ -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();
|
||||
|
||||
}
|
||||
|
@ -188,8 +188,6 @@ signals:
|
||||
quint64 buffer_duration_nanosec_;
|
||||
int buffer_min_fill_;
|
||||
|
||||
bool mono_playback_;
|
||||
|
||||
// Fadeout
|
||||
bool fadeout_enabled_;
|
||||
bool crossfade_enabled_;
|
||||
|
@ -807,7 +807,6 @@ shared_ptr<GstEnginePipeline> 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_) {
|
||||
|
@ -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;
|
||||
|
@ -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<GstBufferConsumer*> buffer_consumers_;
|
||||
QMutex buffer_consumers_mutex_;
|
||||
|
Loading…
Reference in New Issue
Block a user