From 952bc1c74839df825c01d16ed7ed332b246a297f Mon Sep 17 00:00:00 2001
From: Richard Leggett <rleggett@gitlab.riscosopen.org>
Date: Fri, 28 Aug 1998 13:01:41 +0000
Subject: [PATCH] !Run file change.

---
 Resources/!Run,feb   |  14 +++++++-------
 Resources/UK/Res,fae | Bin 3900 -> 3900 bytes
 UrsulaLog            |   7 +++++--
 c/sound              |  16 +++++++++++-----
 4 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/Resources/!Run,feb b/Resources/!Run,feb
index 52505f2..af909c4 100644
--- a/Resources/!Run,feb
+++ b/Resources/!Run,feb
@@ -8,13 +8,13 @@ IF "<Choices$Write>" = "" THEN Error No !Boot application has been run.
 Set SoundConfig$Dir <Obey$Dir>
 Iconsprites <SoundConfig$Dir>.!Sprites
 
-RMEnsure Toolbox   1.36  RMLoad System:modules.toolbox.toolbox
-RMEnsure Toolbox   1.36  Error You need Toolbox 1.36 or later to run Sound Configure
-RMEnsure Window    1.41  RMLoad System:modules.toolbox.window
-RMEnsure Window    1.41  Error You need Window 1.41 or later to run Sound Configure.
-RMEnsure Menu      0.28  RMLoad System:modules.toolbox.menu
-RMEnsure Menu      0.28  Error You need Menu 0.28 or later to run Sound Configure.
-RMEnsure SoundCtrl 0.00  Error You need SoundCtrl 0.00 or later to run Sound Configure.
+RMEnsure Toolbox      1.36  RMLoad System:modules.toolbox.toolbox
+RMEnsure Toolbox      1.36  Error You need Toolbox 1.36 or later to run Sound Configure
+RMEnsure Window       1.41  RMLoad System:modules.toolbox.window
+RMEnsure Window       1.41  Error You need Window 1.41 or later to run Sound Configure.
+RMEnsure Menu         0.28  RMLoad System:modules.toolbox.menu
+RMEnsure Menu         0.28  Error You need Menu 0.28 or later to run Sound Configure.
+RMEnsure SoundControl 0.00  Error You need SoundControl 0.00 or later to run Sound Configure.
 
 WimpSlot -min 256k -max 256k
 Run <SoundConfig$Dir>.!RunImage %*0
diff --git a/Resources/UK/Res,fae b/Resources/UK/Res,fae
index 2a49a677b0a02cc465b9c45a4ba134c4462c00af..af8feaa0a4ccb2aa2a30cf62748ea7370cf08844 100644
GIT binary patch
delta 23
fcmdlZw?}TnYDPwe&1)EiSthS%;oN+JwS*G@WT^+$

delta 21
bcmdlZw?}TnYDUI}&1)EiS%B05)*4O#S{Vn2

diff --git a/UrsulaLog b/UrsulaLog
index 52e9ae6..be733ea 100644
--- a/UrsulaLog
+++ b/UrsulaLog
@@ -22,7 +22,10 @@ Version 0.04 (Richard Leggett)
 Fri 05-Jun-98
   - 'Sound configuration' renamed as 'Sound setup'.
 
+Wed 01-Jul-98
+  - Updated Res file.
+  
 Checked in.
 
-Wed 01-Jul-98
-  - Updated Res file.
\ No newline at end of file
+Tue 11-Aug-98
+  - !Run file change.
\ No newline at end of file
diff --git a/c/sound b/c/sound
index d865fc8..07a84f6 100644
--- a/c/sound
+++ b/c/sound
@@ -33,8 +33,8 @@
 
 #define SoundCtrl_SetVolume   0x50002
 #define SoundCtrl_ChannelInfo 0x50004
-#define Flag_LeftMuted     1u<<0
-#define Flag_RightMuted    2u<<1
+#define Flag_LeftMuted     1
+#define Flag_RightMuted    2
 
 /* SndSetup numbers channels from 0 to NumberOfChannels. The toolbox ID of the slider
    gadget equals this channel number. However, SoundCtrl adopts different numbering, so
@@ -45,7 +45,7 @@
 static char *channel_name[NumberOfChannels] = { "Master",  "System",   "CD",       "Line",
                                                 "Mic",     "Capture",  "Playback", "Wavetable" };
 static int   channel_no[NumberOfChannels] =   {  0,         11,         2,          1,
-                                                 5,         12,         8,         10 };
+                                                 5,         12,         8,          3 };
 static int   min_volume[NumberOfChannels];
 static int   menu_to_voice_map[16];
 static int   cmos_voice, cmos_volume;
@@ -110,8 +110,14 @@ void sound_set_volume(int channel, int volume)
     int   flags;
 
     /* If volume is minimum value, then mute instead */
-    if (volume == min_volume[channel]) flags = Flag_LeftMuted + Flag_RightMuted;
-    else flags = 0;
+    if (volume == min_volume[channel])
+    {
+        flags = Flag_LeftMuted + Flag_RightMuted;
+    }
+    else
+    {
+        flags = 0;
+    }
 
     /* Convert a volume integer (db*10 eg. -125 means -12.5db) into 32bit with 16bit fraction */
     db = (1<<16) * ((float)volume) / 10;
-- 
GitLab