Skip to content

Commit eb67766

Browse files
Add more default values to I2S output
1 parent 4d9d010 commit eb67766

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/AudioOutputI2S.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ AudioOutputI2S::AudioOutputI2S(int port, bool builtInDAC)
6969
#endif
7070
i2sOn = true;
7171
mono = false;
72+
bps = 16;
73+
channels = 2;
7274
SetGain(1.0);
75+
SetRate(44100); // Default
7376
this->builtInDAC = builtInDAC;
7477
}
7578

0 commit comments

Comments
 (0)