View previous topic :: View next topic |
Author |
Message |
paziu Tux's lil' helper
Joined: 24 Nov 2006 Posts: 78
|
Posted: Fri Nov 07, 2014 6:20 am Post subject: alsa/mplayer question ( sampling ) |
|
|
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 |
|
|
paziu Tux's lil' helper
Joined: 24 Nov 2006 Posts: 78
|
Posted: Fri Nov 07, 2014 9:46 am Post subject: |
|
|
going from 44.1 to 48kHz causes interpolation, basically loss(?) |
|
Back to top |
|
|
EmaRsk Apprentice
Joined: 07 Sep 2004 Posts: 158 Location: Italy
|
Posted: Sat Nov 08, 2014 3:04 pm Post subject: |
|
|
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 |
|
|
EmaRsk Apprentice
Joined: 07 Sep 2004 Posts: 158 Location: Italy
|
Posted: Sat Nov 08, 2014 3:18 pm Post subject: |
|
|
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 |
|
|
paziu Tux's lil' helper
Joined: 24 Nov 2006 Posts: 78
|
Posted: Sun Nov 09, 2014 4:58 am Post subject: |
|
|
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 |
|
|
|