aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/Input/cue/decoder_cue.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Input/cue/decoder_cue.cpp b/src/plugins/Input/cue/decoder_cue.cpp
index 398db08d7..dd6c90a5f 100644
--- a/src/plugins/Input/cue/decoder_cue.cpp
+++ b/src/plugins/Input/cue/decoder_cue.cpp
@@ -108,7 +108,7 @@ bool DecoderCUE::initialize()
audioParameters().sampleSize() * m_length/1000;
m_totalBytes = 0;
- m_sz = audioParameters().sampleSize();
+ m_sz = audioParameters().sampleSize() * audioParameters().sampleSize();
addMetaData(m_parser->info(m_track)->metaData());
return true;
@@ -160,7 +160,7 @@ qint64 DecoderCUE::read(char *data, qint64 size)
}
qint64 len2 = qMax(qint64(0), length_in_bytes - m_totalBytes);
- len2 = (len2 / m_sz) * m_sz; //returned size must contain integer number of samples
+ len2 = (len2 / m_sz) * m_sz; //whole of samples of each channel
m_totalBytes += len2;
//save data of the next track
if(m_buf)