aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Effect
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 12:00:24 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 12:00:24 +0000
commit6f301f5880f7efce76ed46e7b502830642b87370 (patch)
tree6e385165d05a0637334bea6e639b21a3c9a696dd /src/plugins/Effect
parent9ed06405eb90a646e831755939d0b9e3a4d2921d (diff)
downloadqmmp-6f301f5880f7efce76ed46e7b502830642b87370.tar.gz
qmmp-6f301f5880f7efce76ed46e7b502830642b87370.tar.bz2
qmmp-6f301f5880f7efce76ed46e7b502830642b87370.zip
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9469 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Effect')
-rw-r--r--src/plugins/Effect/ladspa/ladspahost.cpp4
-rw-r--r--src/plugins/Effect/ladspa/ladspahost.h6
-rw-r--r--src/plugins/Effect/ladspa/settingsdialog.cpp4
-rw-r--r--src/plugins/Effect/soxr/soxresampler.cpp5
-rw-r--r--src/plugins/Effect/soxr/soxresampler.h8
5 files changed, 11 insertions, 16 deletions
diff --git a/src/plugins/Effect/ladspa/ladspahost.cpp b/src/plugins/Effect/ladspa/ladspahost.cpp
index 36f7081c6..0a15b1875 100644
--- a/src/plugins/Effect/ladspa/ladspahost.cpp
+++ b/src/plugins/Effect/ladspa/ladspahost.cpp
@@ -1,7 +1,7 @@
/***************************************************************************
* Copyright (C) 2002-2003 Nick Lamb <njl195@zepler.org.uk> *
* Copyright (C) 2005 Giacomo Lozito <city_hunter@users.sf.net> *
- * Copyright (C) 2009-2015 by Ilya Kotov <forkotov02@ya.ru> *
+ * Copyright (C) 2009-2020 by Ilya Kotov <forkotov02@ya.ru> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -41,8 +41,6 @@ LADSPAHost *LADSPAHost::m_instance = nullptr;
LADSPAHost::LADSPAHost(QObject *parent) : QObject(parent)
{
- m_chan = 2;
- m_freq = 44100;
m_instance = this;
loadModules();
diff --git a/src/plugins/Effect/ladspa/ladspahost.h b/src/plugins/Effect/ladspa/ladspahost.h
index 6b436dfb3..131f874bd 100644
--- a/src/plugins/Effect/ladspa/ladspahost.h
+++ b/src/plugins/Effect/ladspa/ladspahost.h
@@ -1,7 +1,7 @@
/***************************************************************************
* Copyright (C) 2002,2003 Nick Lamb <njl195@zepler.org.uk> *
* Copyright (C) 2005 Giacomo Lozito <city_hunter@users.sf.net> *
- * Copyright (C) 2009-2015 by Ilya Kotov <forkotov02@ya.ru> *
+ * Copyright (C) 2009-2020 by Ilya Kotov <forkotov02@ya.ru> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -102,8 +102,8 @@ private:
QList <LADSPAEffect *> m_effects;
static LADSPAHost *m_instance;
- int m_chan;
- quint32 m_freq;
+ int m_chan = 2;
+ quint32 m_freq = 44100;
QList<void *> m_modules;
LADSPA_Data m_buf[9][MAX_SAMPLES];
};
diff --git a/src/plugins/Effect/ladspa/settingsdialog.cpp b/src/plugins/Effect/ladspa/settingsdialog.cpp
index 877b3098e..b96c6533c 100644
--- a/src/plugins/Effect/ladspa/settingsdialog.cpp
+++ b/src/plugins/Effect/ladspa/settingsdialog.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009-2015 by Ilya Kotov *
+ * Copyright (C) 2009-2020 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -129,7 +129,7 @@ void SettingsDialog::on_configureButton_clicked()
}
if (effect->controls.isEmpty())
{
- QLabel *label = new QLabel(tr("This LADSPA plugin has no user controls"), dialog);
+ label = new QLabel(tr("This LADSPA plugin has no user controls"), dialog);
formLayout->addRow(label);
}
dialog->setLayout(formLayout);
diff --git a/src/plugins/Effect/soxr/soxresampler.cpp b/src/plugins/Effect/soxr/soxresampler.cpp
index 5a7f566fc..e47843638 100644
--- a/src/plugins/Effect/soxr/soxresampler.cpp
+++ b/src/plugins/Effect/soxr/soxresampler.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2016 by Ilya Kotov *
+ * Copyright (C) 2016-2020 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -26,9 +26,6 @@
SoXResampler::SoXResampler() : Effect()
{
- m_soxr = nullptr;
- m_out = nullptr;
- m_out_samples = 0;
QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
m_overSamplingFs = settings.value("SOXR/sample_rate", 48000).toInt();
m_quality = soxr_quality_spec(settings.value("SOXR/quality", SOXR_HQ).toInt(), 0);
diff --git a/src/plugins/Effect/soxr/soxresampler.h b/src/plugins/Effect/soxr/soxresampler.h
index 09e159837..1747548cb 100644
--- a/src/plugins/Effect/soxr/soxresampler.h
+++ b/src/plugins/Effect/soxr/soxresampler.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2016 by Ilya Kotov *
+ * Copyright (C) 2016-2020 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -39,10 +39,10 @@ public:
private:
void freeSoXR();
quint32 m_overSamplingFs;
- float *m_out;
- size_t m_out_samples;
+ float *m_out = nullptr;
+ size_t m_out_samples = 0;
soxr_quality_spec_t m_quality;
- soxr_t m_soxr;
+ soxr_t m_soxr = nullptr;
};