summaryrefslogtreecommitdiff
path: root/src/tangara/audio/audio_fsm.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-07-09 14:41:02 +1000
committerjacqueline <me@jacqueline.id.au>2024-07-09 14:41:02 +1000
commit370d1853b5d099de28c032def4ce3e53b7d735ad (patch)
tree062b6dea507082d28c7bfc2feb7ced450bcd64c8 /src/tangara/audio/audio_fsm.cpp
parent41e0605f17a784e8f125b3ad10ddfe5ef63337d9 (diff)
downloadtangara-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.cpp3
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()));