diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-11-07 10:32:07 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-11-07 10:32:07 +1100 |
| commit | 499d5a942fc2ad0149b0a16e978e090336dd8319 (patch) | |
| tree | 1f671f0e3025b1350b25511e2442dfede19677df /src/audio/audio_fsm.cpp | |
| parent | d36fe9be6b522a3dade389213a0bb7e26a169627 (diff) | |
| download | tangara-fw-499d5a942fc2ad0149b0a16e978e090336dd8319.tar.gz | |
Add a wrapper codec source that does readahead
Diffstat (limited to 'src/audio/audio_fsm.cpp')
| -rw-r--r-- | src/audio/audio_fsm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio/audio_fsm.cpp b/src/audio/audio_fsm.cpp index 09a64db1..f43d0ce2 100644 --- a/src/audio/audio_fsm.cpp +++ b/src/audio/audio_fsm.cpp @@ -105,7 +105,8 @@ void Uninitialised::react(const system_fsm::BootComplete& ev) { StreamBufferHandle_t stream = xStreamBufferCreateWithCaps( kDrainBufferSize, sizeof(sample::Sample) * 2, MALLOC_CAP_DMA); - sFileSource.reset(new FatfsAudioInput(sServices->tag_parser())); + sFileSource.reset( + new FatfsAudioInput(sServices->tag_parser(), sServices->bg_worker())); sI2SOutput.reset(new I2SAudioOutput(stream, sServices->gpios())); sBtOutput.reset(new BluetoothAudioOutput(stream, sServices->bluetooth())); |
