diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-07-09 14:41:02 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-07-09 14:41:02 +1000 |
| commit | 370d1853b5d099de28c032def4ce3e53b7d735ad (patch) | |
| tree | 062b6dea507082d28c7bfc2feb7ced450bcd64c8 /src/tangara/audio/audio_fsm.cpp | |
| parent | 41e0605f17a784e8f125b3ad10ddfe5ef63337d9 (diff) | |
| download | tangara-fw-370d1853b5d099de28c032def4ce3e53b7d735ad.tar.gz | |
Break FatfsStreamFactory's dep on ServiceLocator
Diffstat (limited to 'src/tangara/audio/audio_fsm.cpp')
| -rw-r--r-- | src/tangara/audio/audio_fsm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tangara/audio/audio_fsm.cpp b/src/tangara/audio/audio_fsm.cpp index 8f04c6c1..ad60ab86 100644 --- a/src/tangara/audio/audio_fsm.cpp +++ b/src/tangara/audio/audio_fsm.cpp @@ -363,7 +363,8 @@ void Uninitialised::react(const system_fsm::BootComplete& ev) { sDrainBuffers = std::make_unique<drivers::OutputBuffers>( kTrackDrainLatencySamples, kSystemDrainLatencySamples); - sStreamFactory.reset(new FatfsStreamFactory(*sServices)); + sStreamFactory.reset( + new FatfsStreamFactory(sServices->database(), sServices->tag_parser())); sI2SOutput.reset(new I2SAudioOutput(sServices->gpios(), *sDrainBuffers)); sBtOutput.reset(new BluetoothAudioOutput( sServices->bluetooth(), *sDrainBuffers, sServices->bg_worker())); |
