summaryrefslogtreecommitdiffhomepage
path: root/src/nomute.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-06-10 16:44:19 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-06-10 16:51:02 +0100
commit1c4318331663b152b0b298bd2c9e5c971506a86b (patch)
treea402681cb84b491819ba5018525c16340110fd4d /src/nomute.c
parent602a18977d500ad068fd63fbedcafb630c29ee72 (diff)
Prune some comments and tidy up other minor things
Diffstat (limited to 'src/nomute.c')
-rw-r--r--src/nomute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nomute.c b/src/nomute.c
index 30f93c3..93cfcd2 100644
--- a/src/nomute.c
+++ b/src/nomute.c
@@ -1,5 +1,6 @@
/*
* Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br>
+ * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -37,10 +38,9 @@ static IDirectSoundVtbl *ds_vt = 0;
static typeof(ds_vt->CreateSoundBuffer) orig_CreateSoundBuffer;
static con_cmdcbv1 snd_restart_cb = 0;
-// early init (via VDF) happens before config is loaded, and audio is set up
-// after that, so we don't want to run snd_restart the first time the cvar is
-// set, unless we were loaded later with plugin_load, in which case audio is
-// already up and running and we'll want to restart it every time
+// early init via VDF happens before config is loaded and audio is set up after
+// that, so we don't want to run snd_restart the first time the cvar is set,
+// unless we were loaded later with plugin_load in which case we actually do.
static bool skiprestart;
static void losefocuscb(struct con_var *v) {
if (!skiprestart) snd_restart_cb();