Merge pull request #817 from fewtarius/dev

Fix EmulationStation audio playback with some devices like AYANEO AIR Pro
This commit is contained in:
fewtarius 2022-12-19 20:04:37 -05:00 committed by GitHub
commit 855b7a6bfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,16 +159,31 @@ function set_audio_device() {
done
fi
cat <<EOF >/storage/.config/asound.conf
pcm.!default {
type plug
slave {
pcm "${HWDEV}"
}
}
ctl.!default {
type hw
card ${CARD}
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "${HWDEV}"
period_time 0
period_size 1024
buffer_size 4096
rate 44100
}
bindings {
0 0
1 1
}
}
EOF
}