Skip to content

Commit

Permalink
Update audio.c
Browse files Browse the repository at this point in the history
Fixed client volume being applied twice during audio buffer processing.
  • Loading branch information
bkacjios authored Jan 11, 2025
1 parent b389120 commit 47e456f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mumble/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ void audio_transmission_event(lua_State *l, MumbleClient *client) {
for (int j = 0; j < context->channels; j++) {
float sample;
buffer_readFloat(buffer, &sample);
input_buffer[i * context->channels + j] = soft_clip(sample * client->volume);
input_buffer[i * context->channels + j] = sample;
}
}
}
Expand Down

0 comments on commit 47e456f

Please sign in to comment.