manywele l33t
Joined: 12 Jul 2003 Posts: 740 Location: Inside
|
Posted: Sat Sep 21, 2024 8:45 pm Post subject: libao audio playback at 48000 instead of 44100 |
|
|
On my desktop gentoo machine using flac123 to play a flac file plays through alsa at a sample rate of 44100 which is correct.
On my laptop gentoo machine using flac123 to play a flac file plays through alsa at a sample rate of 48000 which is not correct. However decoding a flac file and piping it through aplay uses the correct sample rate.
Code: |
flac123 some_flac_file.flac
flac123 version 2.1.1 'flac123 --help' for more info
ao_alsa WARNING: sample rate 44100 not supported by the hardware, using 48000
|
but doing the following works as expected and plays at 44100
Code: |
flac -cd some_flac_file.flac | aplay
|
I'm using pure alsa, no systemd, pipewire is installed but I haven't configured it and as far as I can tell it isn't controlling audio. All other audio sources seem to be fine, it's just libao that giving the problem. How do I make it behave and play audio at the correct sample rate of 44100? |
|