Skip to content

Commit 06465f3

Browse files
committed
true16Bits
1 parent bc66350 commit 06465f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sam_arduino.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class SAM {
206206

207207
/// Enableds/disables the scaling to 16 bits - by default this is on
208208
void setTrue16Bits(bool active){
209-
true16Bins = active;
209+
true16Bits = active;
210210
}
211211

212212
/// Provides the sample rate (22050)
@@ -218,7 +218,7 @@ class SAM {
218218
SAMOutputBase *arduino_output=nullptr;
219219
int bits_per_sample = 8;
220220
int channel_count = 1;
221-
bool true16Bins = true;
221+
bool true16Bits = true;
222222

223223
/// Used to feed the audio result back to this class
224224
static void outputByteCallback(void *cbdata, unsigned char b) {
@@ -259,7 +259,7 @@ class SAM {
259259
arduino_output->write((byte*)sample, channel_count);
260260
} else if (bits_per_sample==16) {
261261
int16_t s16 = b;
262-
if (true16Bins) {
262+
if (true16Bits) {
263263
// convert to signed
264264
s16 -= 128;
265265
// convert to int16

0 commit comments

Comments
 (0)