Skip to content

Commit

Permalink
ALSA: update sampling rate with the actual value got from driver
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Feb 11, 2024
1 parent f8f57ec commit 2bf2944
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/audio/alsa/audiodrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ bool Audio_ALSA::open(AudioConfig &cfg)
{ // Gentoo bug #98769, comment 4
unsigned int rate = tmpCfg.frequency;
checkResult(snd_pcm_hw_params_set_rate_near(_audioHandle, hw_params, &rate, 0));
tmpCfg.frequency = rate;
}

_alsa_to_frames_divisor = tmpCfg.channels;
Expand Down

0 comments on commit 2bf2944

Please sign in to comment.