Quantcast
Channel: MOC - music on console - General discussion
Viewing all articles
Browse latest Browse all 92

Resampling question

$
0
0

I'm using moc from svn and my audio setup is:

moc -> jack @ 96k sample rate -> alsa softvol -> Xonar D2X spdif/coax -> DAC -> hi-fi

I notice that when playing a 44k flac with mplayer the CPU usage is <1% and it doesn't say that it's doing any resampling:

==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 58.13.102 (internal)
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
AO: [jack] 96000Hz 2ch floatle (4 bytes per sample)
[Mixer] No hardware mixing, inserting volume filter.

However it seems that moc will always want to resample and the CPU usage shows
that it's doing that. I don't mind using CPU, but is there a way of not
resampling the audio and playing the file directly to jack as mplayer seems to? I'd
rather not compromise on audio quality by resampling if possible.

Maybe I've got it wrong how mplayer is playing files?


Viewing all articles
Browse latest Browse all 92

Trending Articles