Skip to content

Commit

Permalink
fixed critical microphone & speaker IO format modes
Browse files Browse the repository at this point in the history
  • Loading branch information
Binozo committed Dec 24, 2023
1 parent a4dc180 commit 5169c0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/mic/microphone.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ func GetDevice() tinyalsa.AlsaDevice {
SampleRate: 16000,
PeriodSize: 512,
PeriodCount: 5,
Format: tinyalsa.PCM_FORMAT_S24_3LE,
Format: tinyalsa.PCM_IN,
})
}
2 changes: 1 addition & 1 deletion pkg/speaker/speaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ func GetDevice() tinyalsa.AlsaDevice {
SampleRate: 16000,
PeriodSize: 512,
PeriodCount: 4,
Format: tinyalsa.PCM_FORMAT_S16_LE,
Format: tinyalsa.PCM_OUT,
})
}

0 comments on commit 5169c0a

Please sign in to comment.