File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class SAM {
206
206
207
207
// / Enableds/disables the scaling to 16 bits - by default this is on
208
208
void setTrue16Bits (bool active){
209
- true16Bins = active;
209
+ true16Bits = active;
210
210
}
211
211
212
212
// / Provides the sample rate (22050)
@@ -218,7 +218,7 @@ class SAM {
218
218
SAMOutputBase *arduino_output=nullptr ;
219
219
int bits_per_sample = 8 ;
220
220
int channel_count = 1 ;
221
- bool true16Bins = true ;
221
+ bool true16Bits = true ;
222
222
223
223
// / Used to feed the audio result back to this class
224
224
static void outputByteCallback (void *cbdata, unsigned char b) {
@@ -259,7 +259,7 @@ class SAM {
259
259
arduino_output->write ((byte*)sample, channel_count);
260
260
} else if (bits_per_sample==16 ) {
261
261
int16_t s16 = b;
262
- if (true16Bins ) {
262
+ if (true16Bits ) {
263
263
// convert to signed
264
264
s16 -= 128 ;
265
265
// convert to int16
You can’t perform that action at this time.
0 commit comments