Commit 36858d89 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

MixVolume parsing correction

SoundCtrl is supposed to accept "0" to mean the default mixer where not written out longhand, for example as written by earlier versions of the !SndSetup configure plugin from RISC OS 5.00 up to and including SndSetup-2_07. However, the match for "0" never happened and the MixVolume command was subsequently ignored.

Version 1.06. Tagged as 'SoundCtrl-1_06'
parent d990344f
/* (1.05)
/* (1.06)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 1.05
#define Module_MajorVersion_CMHG 1.06
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 08 Jun 2016
#define Module_Date_CMHG 10 Sep 2016
#define Module_MajorVersion "1.05"
#define Module_Version 105
#define Module_MajorVersion "1.06"
#define Module_Version 106
#define Module_MinorVersion ""
#define Module_Date "08 Jun 2016"
#define Module_Date "10 Sep 2016"
#define Module_ApplicationDate "08-Jun-16"
#define Module_ApplicationDate "10-Sep-16"
#define Module_ComponentName "SoundCtrl"
#define Module_ComponentPath "castle/RiscOS/Sources/Audio/SoundCtrl"
#define Module_FullVersion "1.05"
#define Module_HelpVersion "1.05 (08 Jun 2016)"
#define Module_LibraryVersionInfo "1:5"
#define Module_FullVersion "1.06"
#define Module_HelpVersion "1.06 (10 Sep 2016)"
#define Module_LibraryVersionInfo "1:6"
......@@ -372,7 +372,7 @@ static void MixVolumeCommand(const char *arg_string, int argc)
struct mixer_device *device;
char temp[128];
const char *controller_id;
if ((arg_string[0] == '0') && isspace(arg_string[0]))
if ((arg_string[0] == '0') && isspace(arg_string[1]))
{
/* Get current device ID */
if (_swix(Sound_ReadSysInfo, _INR(0,2), Sound_RSI_DefaultController, temp, sizeof(temp)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment