respect current client selection on session resume
this fixes a bug where non-current non-overlay clients could get up to the focused session state when a reconnect occured.
This commit is contained in:
@@ -404,9 +404,14 @@ struct pulse_device : public audio_device
|
||||
mic_buffer.push(std::move(mic_data));
|
||||
}
|
||||
|
||||
void on_connect() override
|
||||
void pause() override
|
||||
{
|
||||
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, true});
|
||||
}
|
||||
|
||||
void resume() override
|
||||
{
|
||||
session.send_control(description());
|
||||
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, (bool)microphone});
|
||||
}
|
||||
|
||||
pulse_device(
|
||||
|
||||
Reference in New Issue
Block a user