Skip to content

Commit f913f6b

Browse files
Add option to keep codec muted
1 parent fb48933 commit f913f6b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ML_SynthTools",
3-
"version": "2.0.11",
3+
"version": "2.0.12",
44
"keywords": "ML_SynthTools, Synthesizer, Filter, Audio, ESP32, ESP32S2, ESP32S3, STM32, RP2040",
55
"description": "Synthesizer Tools; contains waveform generators etc.",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ML SynthTools
2-
version=2.0.11
2+
version=2.0.12
33
author=Marcel Licence <[email protected]>
44
maintainer=Marcel Licence <[email protected]>
55
sentence=Synthesizer Tools

src/es8388.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,9 @@ void ES8388_Setup()
499499
ES8388_WriteReg(0x1A, 0x00);
500500
ES8388_WriteReg(0x1B, 0x02);
501501
/* UnMute DAC */
502+
#ifdef KEEP_CODEC_MUTED_IN_SETUP
502503
ES8388_WriteReg(0x19, 0x32);
504+
#endif
503505
/*
504506
* Setup Mixer
505507
*/
@@ -510,8 +512,8 @@ void ES8388_Setup()
510512
ES8388_WriteReg(0x2A, 0xD0);
511513

512514
/* Set Lout/Rout Volume */
513-
ES8388_SetOUT1VOL(0, 1);
514-
ES8388_SetOUT2VOL(0, 1);
515+
ES8388_SetOUT1VOL(1);
516+
ES8388_SetOUT2VOL(1);
515517

516518
/* Power up DEM and STM */
517519
ES8388_WriteReg(0x02, 0x00);

0 commit comments

Comments
 (0)