Suspend microphone when unused (pipewire only)

This commit is contained in:
Patrick Nicolas
2024-11-23 13:26:34 +01:00
parent b832c84d7b
commit d6db46db09
8 changed files with 59 additions and 14 deletions
+1
View File
@@ -426,6 +426,7 @@ struct pulse_device : public audio_device
if (not mic_pipe)
throw std::system_error(errno, std::system_category(), "failed to open mic pipe " + microphone->socket.string());
mic_thread = std::thread([this]() { run_mic(); });
session.set_enabled(to_headset::tracking_control::id::microphone, true);
}
if (info.speaker)