Re: Higher quality dmix resampling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> I've tried S24_3LE, S24LE, S24_BE, S24_3BE, FLOAT_LE, and FLOAT_BE.
>> None of them produce sound except for S24_3LE.  S16_LE works, but
>> stills suffers from the static problem.  Is there another format I
>> should try?
>
> try the "U" (unsigned) ones... i.e. U16_LE, U24_3LE, etc.
>
>> > BTW: what if you remove everything from asound.conf and just play to
>> > "plughw:0,0" as per default?
>>
>> I did that by removing /etc/asound.conf and doing 'aplay file.wav',
>> but it produces the same static problem.
>
> that's strange!
>
> So how come that you don't get 'em with mpd?!

In mpd I specify oss instead of alsa.  If I specify alsa and involve
dmix, I get static in mpd too.

> what is it using for output?
>
>> I really think dmix is not using the specified samplerate or speexrate.
>
> again, I believe that your problem is completely unrelated to the
> resampling algorithm used.
>
> For the sake of curiosity I've tried them all and can guarantee you
> that all of them produces quite acceptable results. IME *none* of the
> ALSA resampling algorithms (not even the worst ones) ever produce any
> "static" (or other obvious & nasty artifacts for that matter).

Well, there is a blog post under "A little hint for hda ALSA users" which says:

"if you own an hda-based soundcard and you head crackling sound while
playing mp3s or similar, the problem is probably due to the bad
samplerate conversion from 44100 to 48000."

http://blog.flameeyes.eu/tag/alsa/page/2

My DAC isn't hda but I think this demonstrates that dmix's default
resampling algorithm can produce audible artifacts.  He says switching
dmix to the "samplerate" resampler fixes it, and I've defined that,
but I'm not sure it's taking affect.

> The perceived sound quality may be different - and indeed it is if
> you have an audio system which is good enough to notice - but that's
> all.
>
> Your problem can NOT be due to a poor resampling algorithm: it must
> be a plain BUG somewhere!
>
> For the moment I urge you to forget about resampling algorithms and
> seek for the real source of your problems instead.
>
> Trying to keep things as simple as possible (that is, all defaults,
> no resampling) to make debugging easier.
>
> Only once you've got the default config to work properly you may start
> experimenting with more sophisticated options.

That sounds good, but what else can I try?

- Grant

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux