Skip to content

Commit 2c9be20

Browse files
committed
Input support for VS1053Stream
1 parent 5977a44 commit 2c9be20

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/AudioLibs/VS1053Stream.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ class VS1053Stream : public AudioStreamX {
447447
p_vs1053->startSong();
448448
p_vs1053->switchToMp3Mode(); // optional, some boards require this
449449
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();
451451
}
452452
delay(500);
453453
setVolume(VS1053_DEFAULT_VOLUME);
@@ -458,9 +458,10 @@ class VS1053Stream : public AudioStreamX {
458458

459459
bool beginRx() {
460460
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);
464465
return true;
465466
}
466467

0 commit comments

Comments
 (0)