Opened 22 years ago

Closed 22 years ago

Last modified 6 years ago

#8003 closed patch

master volume command line switch

Reported by: SF/trinity78 Owned by: Kirben
Priority: normal Component: Audio
Version: Keywords:
Cc: Game:

Description

i noticed that there is the command line switch missing to set the master volume. i do not know how to use this "diff" thing so i will just add the files.

gameDetector.cpp:

changes are in

line 120:

if ((val = scummcfg->get("master_volume"))) _master_volume = atoi(val);

line 207:

case 'o': // overall music volume

HANDLE_OPTION();

_master_volume = atoi(option); scummcfg- >set("master_volume", _master_volume); break;

line 502:

_master_volume = kDefaultMasterVolume;

gameDectetor.h:

line 38:

byte _master_volume;

Ticket imported from: #591813. Ticket imported from: patches/108.

Attachments (4)

gameDetector.cpp (18.1 KB ) - added by SF/trinity78 22 years ago.
gameDetector.h (1.7 KB ) - added by SF/trinity78 22 years ago.
gameDetector.cpp.diff (388 bytes ) - added by SF/trinity78 22 years ago.
Diff against August 25 CVS of scummvm module
gameDetector.h.diff (28 bytes ) - added by SF/trinity78 22 years ago.
Diff against August 25 CVS of scummvm module

Download all attachments as: .zip

Change History (10)

by SF/trinity78, 22 years ago

Attachment: gameDetector.cpp added

by SF/trinity78, 22 years ago

Attachment: gameDetector.h added

comment:1 by SF/trinity78, 22 years ago

well there are some stupid line breaks in it, better take it out off the files

comment:2 by SF/trinity78, 22 years ago

ok uploaded as diff

by SF/trinity78, 22 years ago

Attachment: gameDetector.cpp.diff added

Diff against August 25 CVS of scummvm module

by SF/trinity78, 22 years ago

Attachment: gameDetector.h.diff added

Diff against August 25 CVS of scummvm module

comment:3 by Kirben, 22 years ago

Owner: set to Kirben

comment:4 by Kirben, 22 years ago

Patch has been altered for current code and added to scummvm cvs.

comment:5 by Kirben, 22 years ago

Status: newclosed

comment:6 by digitall, 6 years ago

Component: Audio
Note: See TracTickets for help on using tickets.