From b192975cb1eeb4e6b7c7bf53cdf42701c55f034a Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 22 Sep 2023 15:48:41 +1000 Subject: make bluetooth pairing ui functional --- src/audio/bt_audio_output.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/audio/bt_audio_output.cpp') diff --git a/src/audio/bt_audio_output.cpp b/src/audio/bt_audio_output.cpp index 2e54f69a..374906fd 100644 --- a/src/audio/bt_audio_output.cpp +++ b/src/audio/bt_audio_output.cpp @@ -29,16 +29,16 @@ namespace audio { static constexpr size_t kDrainBufferSize = 48 * 1024; -BluetoothAudioOutput::BluetoothAudioOutput(drivers::Bluetooth* bt) +BluetoothAudioOutput::BluetoothAudioOutput(drivers::Bluetooth& bt) : IAudioOutput(kDrainBufferSize, MALLOC_CAP_SPIRAM), bluetooth_(bt) {} BluetoothAudioOutput::~BluetoothAudioOutput() {} auto BluetoothAudioOutput::SetInUse(bool in_use) -> void { if (in_use) { - bluetooth_->SetSource(stream()); + bluetooth_.SetSource(stream()); } else { - bluetooth_->SetSource(nullptr); + bluetooth_.SetSource(nullptr); } } -- cgit v1.2.3