From 1c4318331663b152b0b298bd2c9e5c971506a86b Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 10 Jun 2023 16:44:19 +0100 Subject: Prune some comments and tidy up other minor things --- src/nomute.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nomute.c') 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 + * Copyright © 2023 Michael Smith * * 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(); -- cgit v1.2.3