Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Schürmann <daschuer@mixxx.org>
  • Loading branch information
acolombier and daschuer authored Jun 9, 2024
1 parent 905bce1 commit da3e4a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/audio/frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class FramePos final {
}

static constexpr FramePos fromSamplePos(double samplePos,
mixxx::audio::SignalInfo signalInfo) {
const mixxx::audio::SignalInfo& signalInfo) {
return FramePos(static_cast<double>(samplePos) / signalInfo.getChannelCount());
}

Expand Down
4 changes: 2 additions & 2 deletions src/engine/enginebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,8 +900,8 @@ void EngineBuffer::processTrackLocked(
// (1.0 being normal rate. 2.0 plays at 2x speed -- 2 track seconds
// pass for every 1 real second). Depending on whether
// keylock is enabled, this is applied to either the rate or the tempo.
int outputBufferSize = iBufferSize,
stereoPairCount = m_channelCount / mixxx::audio::ChannelCount::stereo();
int outputBufferSize = iBufferSize;
int stereoPairCount = m_channelCount / mixxx::audio::ChannelCount::stereo();
// The speed is calculated out of the buffer size for the stereo channel
// output, after mixing multi channel (stem) together
if (stereoPairCount > 1) {
Expand Down

0 comments on commit da3e4a4

Please sign in to comment.