Skip to content

Commit

Permalink
REFAC(client): More semantics & code clean-up for JACK transport feature
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaMorphic committed Feb 23, 2024
1 parent 6129ad9 commit 41a67d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mumble/JackAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ void JackAudioOutput::prepareOutputBuffers(unsigned int frameCount, QList< Audio
const ClientUser *user = it.key();
AudioOutputBuffer *audio = it.value();

if (!user || !recorder || (recorder && !recorder->isTransportEnabled())) {
if (!user) {
if (audio->prepareSampleBuffer(frameCount)) {
qlMix.append(audio);
} else {
Expand Down Expand Up @@ -1180,7 +1180,7 @@ void JackAudioOutput::prepareOutputBuffers(unsigned int frameCount, QList< Audio
}
}

downMixBuffer.reserve(frameCount);
downMixBuffer.resize(frameCount);
if (audio->prepareSampleBuffer(frameCount)) {
qlMix.append(audio);

Expand Down
2 changes: 1 addition & 1 deletion src/mumble/VoiceRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void VoiceRecorder::run() {
break;
}

const bool shouldMixDown = m_config.mixDownMode == true && m_config.transportEnable;
const bool shouldMixDown = m_config.mixDownMode && m_config.transportEnable;
while (!shouldMixDown && !m_abort && !m_recordBuffer.isEmpty()) {
boost::shared_ptr< RecordBuffer > rb;
{
Expand Down

0 comments on commit 41a67d6

Please sign in to comment.