Skip to content

Commit

Permalink
Fix aplay output volume scaling caused by 0d488c7
Browse files Browse the repository at this point in the history
  • Loading branch information
borine authored and arkq committed Nov 2, 2024
1 parent 45af1a7 commit b9db5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/aplay/aplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static int io_worker_mixer_volume_sync_snd_mixer_elem(
* all channels to the average left-right volume. */

unsigned int volume_sum = 0, muted = 0;
for (size_t i = 1; i < ba_pcm->channels; i++) {
for (size_t i = 0; i < ba_pcm->channels; i++) {
volume_sum += ba_pcm->volume[i].volume;
muted |= ba_pcm->volume[i].muted;
}
Expand Down

0 comments on commit b9db5b6

Please sign in to comment.