aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/flac/decoder_flac.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-28 10:18:04 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-04-28 10:18:04 +0000
commit26f7afaf50fe5965a32db545a1519f88a6a1e0c7 (patch)
tree2ed878105c8dc2cdc552b448bbdb0ccf9d5cc25c /src/plugins/Input/flac/decoder_flac.h
parent4d8df087fb7eb80ac100e5024348b0917e46e7dd (diff)
downloadqmmp-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/flac/decoder_flac.h')
-rw-r--r--src/plugins/Input/flac/decoder_flac.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/plugins/Input/flac/decoder_flac.h b/src/plugins/Input/flac/decoder_flac.h
index 2d31f97a3..f24a2956a 100644
--- a/src/plugins/Input/flac/decoder_flac.h
+++ b/src/plugins/Input/flac/decoder_flac.h
@@ -34,28 +34,28 @@ class CueParser;
struct flac_data
{
//FLAC__SeekableStreamDecoder *decoder;
- FLAC__StreamDecoder *decoder;
- int bitrate;
- int abort; /* abort playing (due to an error) */
+ FLAC__StreamDecoder *decoder = nullptr;
+ int bitrate = 0;
+ int abort = 0; /* abort playing (due to an error) */
- qint64 length;
- qint64 total_samples;
+ qint64 length = 0;
+ qint64 total_samples = 0;
FLAC__byte sample_buffer[SAMPLE_BUFFER_SIZE];
- unsigned sample_buffer_fill;
+ unsigned sample_buffer_fill = 0;
/* sound parameters */
- unsigned bits_per_sample;
- unsigned sample_rate;
- unsigned channels;
+ unsigned bits_per_sample = 0;
+ unsigned sample_rate = 0;
+ unsigned channels = 0;
- FLAC__uint64 last_decode_position;
+ FLAC__uint64 last_decode_position = 0;
//counters
- qint64 read_bytes;
- qint64 frame_counter;
+ qint64 read_bytes = 0;
+ qint64 frame_counter = 0;
- QIODevice *input;
+ QIODevice *input = nullptr;
};
class DecoderFLAC : public Decoder
@@ -80,17 +80,17 @@ private:
uint findID3v2(char *data, ulong size); //retuns ID3v2 tag size
ChannelMap findChannelMap(int channels);
- struct flac_data *m_data;
- qint64 length_in_bytes;
- qint64 m_totalBytes;
- qint64 m_offset;
- qint64 m_length;
- QString m_path;
- CueParser *m_parser;
- int m_track;
- char *m_buf; //buffer for remainig data
- qint64 m_buf_size;
- qint64 m_sz; //sample size
+ struct flac_data *m_data = nullptr;
+ qint64 length_in_bytes = 0;
+ qint64 m_totalBytes = 0;
+ qint64 m_offset = 0;
+ qint64 m_length = 0;
+ QString m_path = 0;
+ CueParser *m_parser = nullptr;
+ int m_track = 0;
+ char *m_buf = nullptr; //buffer for remainig data
+ qint64 m_buf_size = 0;
+ qint64 m_sz = 0; //sample size
};