Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libao audio playback at 48000 instead of 44100
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 740
Location: Inside

PostPosted: Sat Sep 21, 2024 8:45 pm    Post subject: libao audio playback at 48000 instead of 44100 Reply with quote

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 448000

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum