Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa/mplayer question ( sampling )
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
paziu
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2006
Posts: 78

PostPosted: Fri Nov 07, 2014 6:20 am    Post subject: alsa/mplayer question ( sampling ) Reply with quote

I am a bit confused at this moment, is mplayer/mpg123/alsa resampling to 48kHz before the output?

Code:
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video


tx

edit: maybe it should be moved to kernel?
Back to top
View user's profile Send private message
paziu
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2006
Posts: 78

PostPosted: Fri Nov 07, 2014 9:46 am    Post subject: Reply with quote

going from 44.1 to 48kHz causes interpolation, basically loss(?)
Back to top
View user's profile Send private message
EmaRsk
Apprentice
Apprentice


Joined: 07 Sep 2004
Posts: 158
Location: Italy

PostPosted: Sat Nov 08, 2014 3:04 pm    Post subject: Reply with quote

I may be wrong, but it probably means that your sound device's DAC works at 48kHz.
Maybe at http://linuxmusicians.com/ you could find a better answer.
Back to top
View user's profile Send private message
EmaRsk
Apprentice
Apprentice


Joined: 07 Sep 2004
Posts: 158
Location: Italy

PostPosted: Sat Nov 08, 2014 3:18 pm    Post subject: Reply with quote

I found that in /proc/asound/card2/codec#0 (substitute "card2" with what's relevant for you) I can see the allowed sample rates for my device (look for "rates").
Back to top
View user's profile Send private message
paziu
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2006
Posts: 78

PostPosted: Sun Nov 09, 2014 4:58 am    Post subject: Reply with quote

Thanks!

then I need to remember to switch it before playing a 48khz sample.
I still think it is better then being stuck in the 8bit world, but....
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