forked from earlephilhower/ESP8266Audio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 8->16 bit output conversion overflow error
The I2S outputs were converting samples in the buffer passed in from u8->s16 on every call. When the I2S was full, however, the sample would not get pushed and the output function would be called at a later time with the same buffer...which was already at 16 bits. It'd be converted again and turned into a high frequency noise on the output. Now only modify a copy of the input sample in I2S and I2SNoDAC. Fixes the conversion problem competely. Fixes earlephilhower#2
- Loading branch information
1 parent
b9be5c6
commit 0987b12
Showing
3 changed files
with
17 additions
and
10 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