diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-08-12 21:03:34 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-08-12 21:03:34 +0000 |
| commit | 7ef8d11baeaf1847ba7f1df5d858f8cffea9300d (patch) | |
| tree | a741fb49db8834efd4b46d760b89082547eb2a9d /src/plugins/Output/shout | |
| parent | 6f301f5880f7efce76ed46e7b502830642b87370 (diff) | |
| download | qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.gz qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.bz2 qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.zip | |
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9470 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Output/shout')
| -rw-r--r-- | src/plugins/Output/shout/shoutoutput.cpp | 7 | ||||
| -rw-r--r-- | src/plugins/Output/shout/shoutoutput.h | 12 |
2 files changed, 7 insertions, 12 deletions
diff --git a/src/plugins/Output/shout/shoutoutput.cpp b/src/plugins/Output/shout/shoutoutput.cpp index b86e62a36..6252f945f 100644 --- a/src/plugins/Output/shout/shoutoutput.cpp +++ b/src/plugins/Output/shout/shoutoutput.cpp @@ -25,13 +25,8 @@ #include <qmmp/qmmp.h> #include "shoutoutput.h" -ShoutOutput::ShoutOutput(ShoutClient *m) +ShoutOutput::ShoutOutput(ShoutClient *m) : m_client(m) { - m_client = m; - m_soxr = nullptr; - m_ratio = 0; - m_soxr_buf = nullptr; - m_soxr_buf_frames = 0; qsrand(time(nullptr)); } diff --git a/src/plugins/Output/shout/shoutoutput.h b/src/plugins/Output/shout/shoutoutput.h index 6536f0a60..554c3fa9c 100644 --- a/src/plugins/Output/shout/shoutoutput.h +++ b/src/plugins/Output/shout/shoutoutput.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2017 by Ilya Kotov * + * Copyright (C) 2017-2020 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -29,7 +29,7 @@ class ShoutOutput : public Output { public: - ShoutOutput(ShoutClient *m); + explicit ShoutOutput(ShoutClient *m); ~ShoutOutput(); bool initialize(quint32 freq, ChannelMap map, Qmmp::AudioFormat) override; @@ -49,10 +49,10 @@ private: vorbis_comment m_vc; //struct that stores all the user comments vorbis_dsp_state m_vd; //central working state for the packet->PCM decoder vorbis_block m_vb; //local working space for packet->PCM decode - soxr_t m_soxr; - float *m_soxr_buf; - size_t m_soxr_buf_frames; - double m_ratio; + soxr_t m_soxr = nullptr; + float *m_soxr_buf = nullptr; + size_t m_soxr_buf_frames = 0; + double m_ratio = 0; }; #endif // SHOUTOUTPUT_H |
