All pastes #390588 Raw Edit

asounrdrc

public text v1 · immutable
·published 2007-03-11 15:44 UTC
rendered paste body
pcm.!default {
   type plug
   slave {
      pcm "analog_rate"
   }
}

pcm.analog_rate {
   type plug
   slave {
      pcm "analog_dmix"
      format S32_LE
      rate 48000
   }
#   rate_converter "samplerate_best" # for some reason it can't find libsamplerate but it is installed, maybe I have to specify the plugin elsewhere
}
pcm.!analog_dmix {
   type dmix
   ipc_key 2048
   slave {
      pcm "hw:0,0"
      format S32_LE
      rate 48000
      period_time 0
      period_size 1024
      buffer_size 8192
   }
   bindings {
      0 0
      1 1
   }
}

ctl.analog_dmix {
   type hw
   card 0
   device 0
}        


# Defaults to output over spdif
pcm.!spdif {
   type plug
   slave {
      pcm "hw:0,1"
      format S32_LE
   }
}

## For ogle
##
#pcm.!spdif {
#        type plug
#        slave {
#                pcm "hw:0,1"
#                format S32_LE
#        }
#}
#
## For mplayer ao (mplayer -ac hwac3 -ao alsa1x:mplayer)
## For vlc, use mplayer as alsa device
##
#pcm.!iec958 {
#        type plug
#        slave {
#                pcm "hw:0,1"
#                format S32_LE
#        }
#}
#
#pcm.mplayer {
#        type plug
#        slave {
#                pcm "hw:0,1"
#                format S32_LE
#        }
#}