[client] audio: allow microphone recording to be toggled after dialog

This commit is contained in:
Quantum
2022-05-21 23:52:56 -04:00
committed by Geoffrey McRae
parent 146d9a2a53
commit 7e8849180d
3 changed files with 55 additions and 7 deletions

View File

@@ -22,6 +22,7 @@
#include "main.h"
#include "app.h"
#include "audio.h"
#include "core.h"
#include "kb.h"
@@ -174,6 +175,13 @@ void keybind_spiceRegister(void)
app_releaseKeybind(&handles[i]);
handleCount = 0;
#if ENABLE_AUDIO
if (audio_supportsRecord())
{
app_registerKeybind(KEY_E, audio_recordToggleKeybind, NULL,
"Toggle audio recording");
}
#endif
/* register OS based keybinds */
if (app_guestIsLinux())