Loading bluetooth/audio/2.0/default/session/BluetoothAudioSession.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -90,14 +90,16 @@ void BluetoothAudioSession::OnSessionStarted( // bluetooth_audio outputs void BluetoothAudioSession::OnSessionEnded() { std::lock_guard<std::recursive_mutex> guard(mutex_); if (IsSessionReady()) { ReportSessionStatus(); } bool toggled = IsSessionReady(); LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_); audio_config_ = (session_type_ == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH ? kInvalidOffloadAudioConfiguration : kInvalidSoftwareAudioConfiguration); stack_iface_ = nullptr; UpdateDataPath(nullptr); if (toggled) { ReportSessionStatus(); } } // invoking the registered session_changed_cb_ Loading Loading
bluetooth/audio/2.0/default/session/BluetoothAudioSession.cpp +5 −3 Original line number Diff line number Diff line Loading @@ -90,14 +90,16 @@ void BluetoothAudioSession::OnSessionStarted( // bluetooth_audio outputs void BluetoothAudioSession::OnSessionEnded() { std::lock_guard<std::recursive_mutex> guard(mutex_); if (IsSessionReady()) { ReportSessionStatus(); } bool toggled = IsSessionReady(); LOG(INFO) << __func__ << " - SessionType=" << toString(session_type_); audio_config_ = (session_type_ == SessionType::A2DP_HARDWARE_OFFLOAD_DATAPATH ? kInvalidOffloadAudioConfiguration : kInvalidSoftwareAudioConfiguration); stack_iface_ = nullptr; UpdateDataPath(nullptr); if (toggled) { ReportSessionStatus(); } } // invoking the registered session_changed_cb_ Loading