aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Effect/soxr
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/soxr
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/soxr')
-rw-r--r--src/plugins/Effect/soxr/soxresampler.cpp5
-rw-r--r--src/plugins/Effect/soxr/soxresampler.h8
2 files changed, 5 insertions, 8 deletions
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;
};