Re: Higher quality dmix resampling

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

 



>> I'm playing a video in miro and I get:
>>
>> # lsof|grep speex
>> miro.real  9019     user  mem       REG                8,3    108992
>> 28197654 /usr/lib64/libspeex.so.1.4.0
>>
>> Does this mean dmix is using speex?  If so, what else could be causing
>> my static problem?  I basically hear static whenever dmix is involved.
>>  If I have mpd resample with libsamplerate, I get no static.
>>
>> - Grant
>>
>
> Yes, you are using speex.

I don't think my defaults.pcm.rate_converter is being obeyed.  I
switched from "speexrate_best" to "samplerate_best" and also tried
removing the definition entirely, but lsof still says whichever
program is playing audio is opening the speex file and not the
libsamplerate file.

I also tried removing speex from the system and speex disappeared from
lsof, but the static remained.

> I suggest first of all to temporarily leave 'miro' aside - it's a
> non-trivial piece of SW which might have its own quirks.
>
> I suggest to start from very basic 'aplay' with .wav files - just to
> make sure ALSA works OK.

I can definitely confirm static with aplay .wav files that doesn't
exist in mpd.  If I don't have mpd bypass dmix I get static there too.
 Where should I go from here?

# lsof|grep aplay
aplay      2734     marant  cwd       DIR                8,3     4096
 52765471 /home/user
aplay      2734     marant  rtd       DIR                8,3     4096
        2 /
aplay      2734     user  txt       REG                8,3    53376
28837169 /usr/bin/aplay
aplay      2734     user  mem       REG                8,3    35656
29108038 /lib64/librt-2.9.so
aplay      2734     user  mem       REG                8,3  1383600
29108047 /lib64/libc-2.9.so
aplay      2734     user  mem       REG                8,3   137030
29107546 /lib64/libpthread-2.9.so
aplay      2734     user  mem       REG                8,3    14512
29108011 /lib64/libdl-2.9.so
aplay      2734     user  mem       REG                8,3   534648
29108000 /lib64/libm-2.9.so
aplay      2734     user  mem       REG                8,3   850624
30818799 /usr/lib64/libasound.so.2.0.0
aplay      2734     user  mem       REG                8,3   123160
29108031 /lib64/ld-2.9.so
aplay      2734     user  DEL       REG                0,7
1998858 /SYSV00000401
aplay      2734     user  mem       CHR             116,16
    371 /dev/snd/pcmC0D0p
aplay      2734     user  DEL       REG                0,7
1966089 /SYSV00000400
aplay      2734     user    0u      CHR              136,0      0t0
      2 /dev/pts/0
aplay      2734     user    1u      CHR              136,0      0t0
      2 /dev/pts/0
aplay      2734     user    2u      CHR              136,0      0t0
      2 /dev/pts/0
aplay      2734     user    3r      CHR             116,33      0t0
    866 /dev/snd/timer
aplay      2734     user    4u      CHR             116,16      0t0
    371 /dev/snd/pcmC0D0p
aplay      2734     user    5r      REG                8,3 86699108
39968801 /home/user/file.wav

- Grant


> Then, say, 'mplayer' with .flac, .mp3.
>
> You can try to increase ALSA buffers size, but I do not remember how to
> do this, though I remember it was easy.
>
> Regards,
>  Sergei.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
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