Thanks. Taken. https://github.com/quozl/netrek-client-cow/commit/d0e9f8580504149fb4cb7a8935a5e1d15ceb7110 By the way, the git hashes in the patch diff don't seem to exist for me. On Thu, Apr 30, 2020 at 12:51:07PM -0700, Kevin Zheng wrote: > Hi there, > > Attached is a patch that gives netrek-client-cow an xtrekrc option to > lower its sound volume, when playing sounds using SDL_mixer. > > I would like for it to be considered for the official client -- any > feedback? > > Regards, > Kevin > > -- > Kevin Zheng > kevinz5000 at gmail.com | kevinz at berkeley.edu > XMPP: kevinz at eecs.berkeley.edu > >From 606ff055838a067c9f03bc38beb1de2fe3105ee8 Mon Sep 17 00:00:00 2001 > From: Kevin Zheng <kevinz5000 at gmail.com> > Date: Sun, 12 Apr 2020 17:18:14 -0700 > Subject: [PATCH] Add volume control > > --- > sound.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/sound.c b/sound.c > index 7b1671d..a8c33d2 100644 > --- a/sound.c > +++ b/sound.c > @@ -1065,6 +1065,11 @@ void Init_Sound(void) { > > Mix_AllocateChannels(16); > > + if (getdefault("soundvol") != NULL) { > + int vol = atoi(getdefault("soundvol")); > + Mix_Volume(-1, vol); > + } > + > /* If we successfully loaded the wav files, so shut-off > sound_init and play the introduction */ > if (loadSounds()) { > -- > 2.24.0 > > _______________________________________________ > netrek-dev mailing list > netrek-dev at us.netrek.org > http://mailman.us.netrek.org/mailman/listinfo/netrek-dev -- James Cameron http://quozl.netrek.org/