sysaudio: fix build errors on linux

This commit is contained in:
Ali Chraghi 2023-04-11 04:11:10 +03:30 committed by Stephen Gutekanst
parent 49b7c940a9
commit 3a0948098f
2 changed files with 12 additions and 4 deletions

View file

@ -698,6 +698,8 @@ pub fn fromAlsaChannel(pos: c_uint) !main.Channel.Id {
c.SND_CHMAP_SL => .side_left,
c.SND_CHMAP_SR => .side_right,
c.SND_CHMAP_RC => .back_center,
c.SND_CHMAP_RLC => .back_left,
c.SND_CHMAP_RRC => .back_right,
c.SND_CHMAP_FLC => .front_left_center,
c.SND_CHMAP_FRC => .front_right_center,
c.SND_CHMAP_TC => .top_center,
@ -721,6 +723,8 @@ pub fn toCHMAP(pos: main.Channel.Id) c_uint {
.side_left => c.SND_CHMAP_SL,
.side_right => c.SND_CHMAP_SR,
.back_center => c.SND_CHMAP_RC,
.back_left => c.SND_CHMAP_RLC,
.back_right => c.SND_CHMAP_RRC,
.front_left_center => c.SND_CHMAP_FLC,
.front_right_center => c.SND_CHMAP_FRC,
.top_center => c.SND_CHMAP_TC,