Skip to content

Commit 796a858

Browse files
committed
Set initial volume also for VS1053BaseStream
1 parent bdfd905 commit 796a858

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/AudioLibs/VS1053Stream.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ class VS1053BaseStream : public AudioStreamX {
5151
if (p_vs1053->getChipVersion() == 4) { // Only perform an update if we really are using a VS1053, not. eg. VS1003
5252
p_vs1053->loadDefaultVs1053Patches();
5353
}
54+
55+
delay(100);
56+
setVolume(VS1053_DEFAULT_VOLUME);
57+
5458
return true;
5559
}
5660

@@ -260,8 +264,6 @@ class VS1053Stream : public AudioStreamX {
260264
case TX_MODE:
261265
p_out->begin(cfg);
262266
p_driver->begin();
263-
delay(100);
264-
setVolume(VS1053_DEFAULT_VOLUME);
265267
result = true;
266268
break;
267269
#if VS1053_EXT

0 commit comments

Comments
 (0)