File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -447,7 +447,7 @@ class VS1053Stream : public AudioStreamX {
447
447
p_vs1053->startSong ();
448
448
p_vs1053->switchToMp3Mode (); // optional, some boards require this
449
449
if (p_vs1053->getChipVersion () == 4 ) { // Only perform an update if we really are using a VS1053, not. eg. VS1003
450
- // p_vs1053->loadDefaultVs1053Patches();
450
+ p_vs1053->loadDefaultVs1053Patches ();
451
451
}
452
452
delay (500 );
453
453
setVolume (VS1053_DEFAULT_VOLUME);
@@ -458,9 +458,10 @@ class VS1053Stream : public AudioStreamX {
458
458
459
459
bool beginRx () {
460
460
LOGI (LOG_METHOD);
461
- p_vs1053->setRecordingSampleRate (cfg.sample_rate );
462
- p_vs1053->setRecordingDevice (cfg.input_device );
463
- p_vs1053->beginInput (cfg.is_encoded_data );
461
+ VS1053Recording rec;
462
+ rec.setSampleRate (cfg.sample_rate );
463
+ rec.setInput (cfg.input_device );
464
+ p_vs1053->beginInput (rec);
464
465
return true ;
465
466
}
466
467
You can’t perform that action at this time.
0 commit comments