diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-04-28 10:18:04 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-04-28 10:18:04 +0000 |
| commit | 26f7afaf50fe5965a32db545a1519f88a6a1e0c7 (patch) | |
| tree | 2ed878105c8dc2cdc552b448bbdb0ccf9d5cc25c /src/plugins/Input/wavpack | |
| parent | 4d8df087fb7eb80ac100e5024348b0917e46e7dd (diff) | |
| download | qmmp-26f7afaf50fe5965a32db545a1519f88a6a1e0c7.tar.gz qmmp-26f7afaf50fe5965a32db545a1519f88a6a1e0c7.tar.bz2 qmmp-26f7afaf50fe5965a32db545a1519f88a6a1e0c7.zip | |
optimization
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8802 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/wavpack')
| -rw-r--r-- | src/plugins/Input/wavpack/decoder_wavpack.cpp | 11 | ||||
| -rw-r--r-- | src/plugins/Input/wavpack/decoder_wavpack.h | 26 |
2 files changed, 13 insertions, 24 deletions
diff --git a/src/plugins/Input/wavpack/decoder_wavpack.cpp b/src/plugins/Input/wavpack/decoder_wavpack.cpp index 0c75cb914..2607d9dc8 100644 --- a/src/plugins/Input/wavpack/decoder_wavpack.cpp +++ b/src/plugins/Input/wavpack/decoder_wavpack.cpp @@ -36,17 +36,6 @@ DecoderWavPack::DecoderWavPack(const QString &path) : Decoder() { m_path = path; - m_totalTime = 0.0; - m_chan = 0; - m_context = nullptr; - m_parser = nullptr; - m_output_buf = nullptr; - m_length_in_bytes = 0; - m_totalBytes = 0; - m_frame_size = 0; - m_offset = 0; - m_bps = 0; - m_track = 0; } DecoderWavPack::~DecoderWavPack() diff --git a/src/plugins/Input/wavpack/decoder_wavpack.h b/src/plugins/Input/wavpack/decoder_wavpack.h index ede01d1e8..14dd79438 100644 --- a/src/plugins/Input/wavpack/decoder_wavpack.h +++ b/src/plugins/Input/wavpack/decoder_wavpack.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2016 by Ilya Kotov * + * Copyright (C) 2008-2019 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -48,19 +48,19 @@ private: void deinit(); qint64 wavpack_decode(unsigned char *data, qint64 size); ChannelMap findChannelMap(int channels); - WavpackContext *m_context; - int32_t *m_output_buf; // output buffer - int m_chan; - qint64 m_totalTime; - qint64 m_length_in_bytes; - qint64 m_totalBytes; - qint64 m_offset; - qint64 m_length; + WavpackContext *m_context = nullptr; + int32_t *m_output_buf = nullptr; // output buffer + int m_chan = 0; + qint64 m_totalTime = 0; + qint64 m_length_in_bytes = 0; + qint64 m_totalBytes = 0; + qint64 m_offset = 0; + qint64 m_length = 0; QString m_path; - CueParser *m_parser; - int m_track; - int m_bps; - qint64 m_frame_size; //frame size + CueParser *m_parser = nullptr; + int m_track = 0; + int m_bps = 0; + qint64 m_frame_size = 0; //frame size }; #endif // DECODER_WAVPACK_H |
