Merge pull request #817 from fewtarius/dev
Fix EmulationStation audio playback with some devices like AYANEO AIR Pro
This commit is contained in:
commit
855b7a6bfc
1 changed files with 21 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue