Files
uno-q-audio-synth/scripts/asound.conf
T

45 lines
873 B
Plaintext

# ALSA configuration for USB gadget audio
# The UAC1 gadget appears as a ALSA card (typically card 1 or 2).
# This config routes Pd audio output to the USB gadget.
# Default PCM device for USB gadget audio
pcm.!default {
type plug
slave {
pcm "hw:UAC1Gadget,0"
format S16_LE
channels 2
rate 48000
}
}
# Control device
ctl.!default {
type hw
card UAC1Gadget
}
# Software volume control via ALSA (hardware may not have mixer)
pcm.softvol {
type softvol
slave.pcm "hw:UAC1Gadget,0"
control {
name "Master Playback Volume"
card UAC1Gadget
}
min_dB -51.0
max_dB 0.0
resolution 256
}
# Null sink for testing when no USB gadget is connected
pcm.loopback {
type plug
slave {
pcm "hw:Loopback,0,0"
format S16_LE
channels 2
rate 48000
}
}