Rob Leslie rob@mars.org wrote:
The audio_oss module is not used for the --output=raw: or wav: formats, so your changes have no effect in those modes.
But not to use the --output parameter, I get some errors. The following is The output:
bash-2.04# ./mad -v --downsample 03.mp3 MPEG Audio Decoder 0.13.0 (beta) - Copyright (C) 2000-2001 Robert Leslie output: using output sample frequency 22050 Hz output: sample frequency 22050 Hz not available; closest 0 Hz output: cannot resample 22050 Hz to 0 Hz
I don't know what this mean. The /dev/dsp seems work right. When I changed the audio_raw module, using the --output=raw:/dev/dsp, the mad can work.
I checked the player.c. In line 551, I find that:
if (player->verbosity >= 0 && output->speed_in != output->speed_out) { error("output", _("sample frequency %u Hz not available; closest %u Hz"), pcm->samplerate, control.config.speed); ^^^^^^^^^^^^^^^^^^^^^^ Why the control.config.speed=0? What this mean? Can anyone help me?
Thank you for your help!
Lingxiang Zheng.
Lingxiang Zheng wrote:
But not to use the --output parameter, I get some errors. The following is The output:
bash-2.04# ./mad -v --downsample 03.mp3 MPEG Audio Decoder 0.13.0 (beta) - Copyright (C) 2000-2001 Robert Leslie output: using output sample frequency 22050 Hz output: sample frequency 22050 Hz not available; closest 0 Hz output: cannot resample 22050 Hz to 0 Hz
I don't know what this mean.
Why the control.config.speed=0? What this mean? Can anyone help me?
Your audio driver has returned 0 as the effective sampling frequency after MAD tried to set it to 22050. This isn't very helpful behavior; I think it is a bug in your audio driver.