Skip to content

Instantly share code, notes, and snippets.

@MaartenBaert
Last active February 22, 2016 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaartenBaert/3630a1863969ba344704 to your computer and use it in GitHub Desktop.
Save MaartenBaert/3630a1863969ba344704 to your computer and use it in GitHub Desktop.
ALSA configuration for recording with JACK.
# Some of this may look redundant, but this was carefully written to
# work around various bugs in alsa-plugins, so don't mess with it :).
# override default
pcm.!default {
type plug
slave {
pcm "rjack"
}
}
pcm.!default {
type asym
playback {
pcm "jack"
}
capture {
# change this so it matches the microphone you want to use
pcm "sysdefault:1"
}
}
defaults.pcm.dmix.rate 48000
defaults.pcm.dsnoop.rate 48000
defaults.pcm.rate_converter "speexrate"
# ALSA-to-JACK bridge
pcm.jack {
type plug
slave {
pcm "rjack"
}
hint {
description "JACK bridge"
}
}
pcm.rjack {
type jack
playback_ports {
0 "system:playback_1"
1 "system:playback_2"
}
capture_ports {
0 "mic:capture_1"
1 "mic:capture_1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment