diff options
author | Marcos CARDINOT <mcardinot@gmail.com> | 2014-04-16 22:06:11 +0100 |
---|---|---|
committer | Marcos CARDINOT <mcardinot@gmail.com> | 2014-04-16 22:06:11 +0100 |
commit | e7ef8e14a21b1485e5266a7071ffd6a1e492705d (patch) | |
tree | 33eddb1ac4fea0c0d13dcc7e405aa5ffe9076dc5 /src/engine/sidechain/enginerecord.cpp | |
parent | 1b136784a9e5555a4debac9c1e55824453f8b804 (diff) |
remove unnecessary var m_cueSamplePos from enginerecord
Diffstat (limited to 'src/engine/sidechain/enginerecord.cpp')
-rw-r--r-- | src/engine/sidechain/enginerecord.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/engine/sidechain/enginerecord.cpp b/src/engine/sidechain/enginerecord.cpp index da4f1f7d99..8d82992e63 100644 --- a/src/engine/sidechain/enginerecord.cpp +++ b/src/engine/sidechain/enginerecord.cpp @@ -167,7 +167,6 @@ void EngineRecord::process(const CSAMPLE* pBuffer, const int iBufferSize) { if (m_bCueIsEnabled) { openCueFile(); - m_cueSamplePos = 0; m_cueTrack = 0; } } else { // Maybe the encoder could not be initialized @@ -206,7 +205,6 @@ void EngineRecord::process(const CSAMPLE* pBuffer, const int iBufferSize) { writeCueLine(); m_cueFile.flush(); } - m_cueSamplePos += iBufferSize; } } } @@ -220,14 +218,14 @@ void EngineRecord::writeCueLine() { unsigned long samplerate = m_pSamplerate->get() * 2; // CDDA is specified as having 75 frames a second unsigned long frames = ((unsigned long) - ((m_cueSamplePos / (samplerate / 75))) + ((m_frames / (samplerate / 75))) % 75); unsigned long seconds = ((unsigned long) - (m_cueSamplePos / samplerate) + (m_frames / samplerate) % 60 ); - unsigned long minutes = m_cueSamplePos / (samplerate * 60); + unsigned long minutes = m_frames / (samplerate * 60); m_cueFile.write(QString(" TRACK %1 AUDIO\n") .arg((double)m_cueTrack, 2, 'f', 0, '0') |