-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[i2s_audio] Add more options to speakers and microphones
Now I2S speakers also have the following options that already exist for microphones: * `i2s_mode` (primary/secondary; default: primary) * `use_apll` (true/false, default: false) * `channel` (left/right/mono/stereo, default: mono) * `sample_rate` (default: 16000) * `bits_per_sample` (default: 16bit) Both speakers and microphones also have: * `bits_per_channel` (default: equal to `bits_per_sample`) `channel` has new values: * stereo: input/output data is interpreted as a sequence of (right, left) pairs (this option works for both speakers and microphones); * mono: for speakers, this is the old behavior - each sample from the input is sent to both left and right channels. Also, speakers have an extra option: * `timeout` (default: 100ms) - how long the background tasks should wait before releasing the bus if the buffer is empty.
- Loading branch information
Showing
18 changed files
with
209 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.