[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.53,1.54 simonvga.cpp,1.4,1.5
Pawe? Ko?odziejski
aquadran at users.sourceforge.net
Sat Aug 24 06:17:03 CEST 2002
- Previous message: [Scummvm-cvs-logs] CVS: scummvm gui.cpp,1.69,1.70 insane.cpp,1.59,1.60 saveload.cpp,1.61,1.62 script_v2.cpp,1.87,1.88 scummvm.cpp,1.214,1.215 scummvm.dsp,1.52,1.53 sound.cpp,1.131,1.132
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sound imuse.cpp,1.44,1.45 mididrv.cpp,1.39,1.40 mixer.cpp,1.52,1.53 mixer.h,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/simon
In directory usw-pr-cvs1:/tmp/cvs-serv8229/simon
Modified Files:
simon.cpp simonvga.cpp
Log Message:
comited patch #598939, thanks Xavier :)
with some changes:
- compatible with VC6,
- naming convention,
- removed channel.cpp
- correct endlines.
Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- simon.cpp 23 Aug 2002 22:17:24 -0000 1.53
+++ simon.cpp 24 Aug 2002 13:16:54 -0000 1.54
@@ -128,7 +128,7 @@
_game = detector->_gameId;
/* Setup mixer */
- if (!_mixer->bind_to_system(syst))
+ if (!_mixer->bindToSystem(syst))
warning("Sound initialization failed. "
"Features of the game that depend on sound synchronization will most likely break");
set_volume(detector->_sfx_volume);
@@ -3296,7 +3296,7 @@
fseek(in, 0, SEEK_SET);
/* stop all sounds */
- _mixer->stop_all();
+ _mixer->stopAll();
if (_sfx_heap)
free(_sfx_heap);
@@ -4038,12 +4038,11 @@
FILE *in;
char buf[50];
uint32 size;
-
- // FIXME - weird hack to make the beard show up when wearing it (see bug #590800)
- if (vga_id == 328)
- sprintf(buf, "0119.VGA");
- else
- sprintf(buf, "%.3d%d.VGA", vga_id >> 1, (vga_id & 1) + 1);
+ // FIXME - weird hack to make the beard show up when wearing it (see bug #590800)
+ if (vga_id == 328)
+ sprintf(buf, "0119.VGA");
+ else
+ sprintf(buf, "%.3d%d.VGA", vga_id >> 1, (vga_id & 1) + 1);
in = fopen_maybe_lowercase(buf);
if (in == NULL) {
@@ -4798,7 +4797,7 @@
byte *buffer = (byte *)malloc(data[1]);
fread(buffer, data[1], 1, _voice_file);
- _mixer->play_raw(&_voice_sound, buffer, data[1], READ_LE_UINT32(&wave_hdr.samples_per_sec),
+ _mixer->playRaw(&_voice_sound, buffer, data[1], READ_LE_UINT32(&wave_hdr.samples_per_sec),
SoundMixer::FLAG_UNSIGNED);
} else { /* VOC audio */
VocHeader voc_hdr;
@@ -4821,7 +4820,7 @@
byte *buffer = (byte *)malloc(size);
fread(buffer, size, 1, _voice_file);
- _mixer->play_raw(&_voice_sound, buffer, size, samples_per_sec, SoundMixer::FLAG_UNSIGNED);
+ _mixer->playRaw(&_voice_sound, buffer, size, samples_per_sec, SoundMixer::FLAG_UNSIGNED);
}
}
@@ -4854,7 +4853,7 @@
byte *buffer = (byte *)malloc(size);
fread(buffer, size, 1, _effects_file);
- _mixer->play_raw(&_effects_sound, buffer, size, samples_per_sec, SoundMixer::FLAG_UNSIGNED);
+ _mixer->playRaw(&_effects_sound, buffer, size, samples_per_sec, SoundMixer::FLAG_UNSIGNED);
} else {
byte *p;
@@ -4880,7 +4879,7 @@
p++;
}
- _mixer->play_raw(&_playing_sound, p + 8, READ_LE_UINT32(p + 4), 22050,
+ _mixer->playRaw(&_playing_sound, p + 8, READ_LE_UINT32(p + 4), 22050,
SoundMixer::FLAG_UNSIGNED);
}
} else {
@@ -4938,7 +4937,7 @@
void SimonState::set_volume(byte volume)
{
- _mixer->set_volume(volume);
+ _mixer->setVolume(volume);
}
Index: simonvga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simonvga.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- simonvga.cpp 18 Aug 2002 16:21:08 -0000 1.4
+++ simonvga.cpp 24 Aug 2002 13:16:54 -0000 1.5
@@ -1367,7 +1367,7 @@
void SimonState::vc_29_stop_all_sounds()
{
- _mixer->stop_all();
+ _mixer->stopAll();
}
void SimonState::vc_30_set_base_delay()
- Previous message: [Scummvm-cvs-logs] CVS: scummvm gui.cpp,1.69,1.70 insane.cpp,1.59,1.60 saveload.cpp,1.61,1.62 script_v2.cpp,1.87,1.88 scummvm.cpp,1.214,1.215 scummvm.dsp,1.52,1.53 sound.cpp,1.131,1.132
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sound imuse.cpp,1.44,1.45 mididrv.cpp,1.39,1.40 mixer.cpp,1.52,1.53 mixer.h,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list