On Wed, 20 Sep 2000, Sean 'Shaleh' Perry wrote:
On 21-Sep-2000 Rob Leslie wrote:
madplay ~/mp3/foo output: sample frequency 44100 Hz not available; closest 44191 Hz output: cannot resample 44100 Hz to 44191 Hz decode: error while decoding
I suppose this was made too strict. There should be some tolerance for sampling frequencies close to the requested one; I'll try to relax this.
this happens with all the mp3's I tried. Can you explain what is happening? Is it a sound card / driver issue? Are my mp3's poorly encoded?
Some audio cards don't use a clock which perfectly result in a 44100Hz but pretty near that, and some drivers like to tell you when it happens (by returning the sampling rate that is the nearest from what is requested). This is not really a bug.
Now the latest madplay release includes a resampling function that tries to convert unsupported sampling rates to the one the card supports. For example, some audio cards may do 44100Hz but not 22050Hz. Since madplay has a strict resampling conversion which isn't able to do 44100Hz -> 44191Hz, it yield an error. In practice, the two are close enough so madplay could be told not to bother when the difference is small.
Nicolas