Forum » Client Support

Linux 1.0.0b high pitched/fast playback

    • floogy ha detto...
    • Utente
    • Ott 13 2006, 14:22
    floogy said:
    pheidippides said:
    I've never got dmix working on my machine, despite a fairly up to date ALSA and copy-pasting lots of example .asoundrc files.

    dmix should activated by default by alsa >= 1.0.11 I think.
    On Ubuntu 6.06 Dapper I can use it e.g. with aplay -Dplug:dmix ~/sample.wav out of the box.

    I now have a ~/.asoundrc which also handles dsnoop and asym as a full duplex alsa-sharing device. worked for me.

    My ~/.asoundrc


    ctl.!default {
    type hw
    card 0
    rate 44100

    pcm.!default {
    type plug
    slave.pcm swmixer

    It came out, that this .asoundrc has got up to 3 pcm.!default entries, but it works only with one entry! (amixer, alsamixergui etc. doesn't like that)

    I'm sorry for this.

  • The following is all I need to get a working dmix. aplay -Dplug:dmix will not work (I'm not sure if it should), and I haven't set it as default as I prefer not to remix if not needed.

    pcm.dmixer { #this virtual device does the mixing of
    type dmix #the various signals
    ipc_key 1234
    slave {
    pcm "hw:0,0"
    #period_time 0
    period_size 1024
    buffer_size 4096 # Envy24HT based cards may have stricter
    # limits for the buffer size than normal.
    format S32_LE # Hardware specific
    rate 44100 # choice of rate is hardware specific
    #rate 48000

    It was the "format" that was stopping me again; dmix devices must talk directly to a hardware interface, so need the right parameters (the three I've added comments for).

Gli utenti anonimi non possono inviare messaggi. Per inserire messaggi nei forum, accedi o crea il tuo account.