Skip to content

Instantly share code, notes, and snippets.

@MaartenBaert
MaartenBaert / .asoundrc-jack
Last active February 22, 2016 01:16
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"
}
}
@MaartenBaert
MaartenBaert / gast.sh
Last active February 22, 2016 01:23
A script that automates the process of configuring JACK, PulseAudio and ALSA for recording with SSR. It's used to record game audio, microphone audio and Skype/TeamSpeak audio simultaneously. This script only works when combined with the right config files. Also, this is completely unsupported, don't expect it to 'just work'.
#!/bin/bash
# IMPORTANT: READ THIS BEFORE RUNNING THIS SCRIPT!
# This script only works when the system is configured correctly. Do these things first:
#
# Step 1:
# - If you have an ~/.asoundrc file, rename it to ~/.asoundrc-default. If you don't have one, create an empty file named ~/.asoundrc-default.
# - Create ~/.asoundrc-jack with the contents found here: https://gist.github.com/MaartenBaert/3630a1863969ba344704
# The script will create a symlink from .asoundrc to .asoundrc-jack when started, and from .asoundrc to .asoundrc-default when stopped.
#