Stuttering when resampling from 44.1kHz to 48kHz

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

 



I've been having lots of audio issues with Boxee (most of them accepted Boxee bugs) with Digital Audio over HDMI.

In order to consistently get sound all areas of Boxee (e.g. web video, local DTS/AC3 passthru and PCM), my asoundrc looks like this:

pcm:iec958 hdmi:NVidia

pcm.dmixer {
 type dmix
 ipc_key 1024
 ipc_key_add_uid false
 ipc_perm 0660
 slave {
   pcm "hw:0,7"
   rate 48000
   channels 2
   period_time 0
   period_size 1024
   buffer_time 0
   buffer_size 8192
 }
}

pcm.!default {
  type plug
  slave.pcm "dmixer"
}

This works well for everything except content at 44.1kHz, which obviously gets resampled to 48kHz by the dmixer device defined above, and it applies to whenever I use the defined dmixer device, regardless of the software that's playing it.

The symptoms I'm experiencing are one or two momentary stutters every 5 minutes (typically a two of stutters in the first minute, then nothing for a while). Is there anything obvious I can do with the configuration above to remedy it?

If I use specific hw devices for 44.1kHz playback, I don't get the stutters BUT that's not an option for Boxee, as the audio is very flaky (device locking issues, and web video always uses the default ALSA device regardless of what's set in Boxee's preferences).

I'm using:

 - Mythbuntu 10.10 Maverick (x86_64)
 - Alsa 1.0.23

...with the following modules:

$ lsmod | grep snd
snd_hda_codec_nvhdmi    14587  4
snd_hda_intel          26019  4
snd_hda_codec         100919  2 snd_hda_codec_nvhdmi,snd_hda_intel
snd_hwdep               6660  1 snd_hda_codec
snd_pcm                89104  5 cx88_alsa,snd_hda_intel,snd_hda_codec
snd_seq_midi            5932  0
snd_rawmidi            22207  1 snd_seq_midi
snd_seq_midi_event      7291  1 snd_seq_midi
snd_seq                57512  2 snd_seq_midi,snd_seq_midi_event
snd_timer              23850  4 snd_pcm,snd_seq
snd_seq_device          6912  3 snd_seq_midi,snd_rawmidi,snd_seq
snd                    64117  13 cx88_alsa,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               1240  1 snd
snd_page_alloc          8588  2 snd_hda_intel,snd_pcm

The audio device is from an Nvidia GT210 video card, running 260.19.06:

hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    Direct sample mixing device
dmix:CARD=NVidia,DEV=7
    HDA NVidia, NVIDIA HDMI
    Direct sample mixing device
dmix:CARD=NVidia,DEV=8
    HDA NVidia, NVIDIA HDMI
    Direct sample mixing device
dmix:CARD=NVidia,DEV=9
    HDA NVidia, NVIDIA HDMI
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
    HDA NVidia, NVIDIA HDMI
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
    HDA NVidia, NVIDIA HDMI
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
    HDA NVidia, NVIDIA HDMI
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
    HDA NVidia, NVIDIA HDMI
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
    HDA NVidia, NVIDIA HDMI
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
    HDA NVidia, NVIDIA HDMI
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
    HDA NVidia, NVIDIA HDMI
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
    HDA NVidia, NVIDIA HDMI
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
    HDA NVidia, NVIDIA HDMI
    Hardware device with all software conversions

Reasonably new to tinkering with sound on Ubuntu, so forgive me if this information isn't relevant or incomplete.

Thanks in advance,

Ben
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
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