Skip to content

Instantly share code, notes, and snippets.

@curz46
Last active April 30, 2023 10:01
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save curz46/1ce42f9c59136cc812b7518963d770b4 to your computer and use it in GitHub Desktop.
Save curz46/1ce42f9c59136cc812b7518963d770b4 to your computer and use it in GitHub Desktop.
astro a50 pulseaudio /etc/pulse/default.pa
# pulseaudio defaults to only detecting Astro A50 voice and microphone, not game
# this is what i had to do to fix it, hopefully it saves someone some time
# index:subdevice may be different for you
# resources:
# https://wiki.archlinux.org/index.php/PulseAudio/Examples at "module-alsa-sink"
# https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index6h3
.nofail
load-module module-alsa-sink device=hw:3,0 sink_name=voice
update-sink-proplist voice device.description="Astro A50 Voice"
# it also incorrectly orders the channel map, i believe this is relatively correct (at least not unbalanced)
load-module module-alsa-sink device=hw:3,1 sink_name=game channel_map=left,right,fro
nt-center,rear-center,rear-left,rear-right
update-sink-proplist game device.description="Astro A50 Game"
load-module module-alsa-source device=hw:3,0
@brigs
Copy link

brigs commented Nov 28, 2020

@FennyFatal - thanks for your script, much appreciated!

HWID=aplay -l | grep 'A50' | cut -d" " -f2 | head -1 | cut -d":" -f1

should be changed to:

HWID=$(aplay -l | grep 'A50' | cut -d" " -f2 | head -1 | cut -d":" -f1)

for it to run through shellcheck :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment