mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-03 16:09:32 +00:00
SCI: changing signature of kDoSound(play) in SCI2.1 to "o(i)" now, because qfg4 still uses "oi" calling
svn-id: r50879
This commit is contained in:
parent
539d10ea11
commit
76f6449431
@ -386,10 +386,12 @@ static const SciKernelMapSubEntry kDoSound_subops[] = {
|
|||||||
{ SIG_SOUNDSCI21, 5, MAP_CALL(DoSoundSuspend), NULL, NULL },
|
{ SIG_SOUNDSCI21, 5, MAP_CALL(DoSoundSuspend), NULL, NULL },
|
||||||
{ SIG_SOUNDSCI21, 6, MAP_CALL(DoSoundInit), NULL, NULL },
|
{ SIG_SOUNDSCI21, 6, MAP_CALL(DoSoundInit), NULL, NULL },
|
||||||
{ SIG_SOUNDSCI21, 7, MAP_CALL(DoSoundDispose), NULL, NULL },
|
{ SIG_SOUNDSCI21, 7, MAP_CALL(DoSoundDispose), NULL, NULL },
|
||||||
{ SIG_SOUNDSCI21, 8, MAP_CALL(DoSoundPlay), "o", NULL },
|
{ SIG_SOUNDSCI21, 8, MAP_CALL(DoSoundPlay), "o(i)", NULL },
|
||||||
// ^^ TODO: if this is really the only change between SCI1LATE AND SCI21, we could rename the
|
// ^^ TODO: if this is really the only change between SCI1LATE AND SCI21, we could rename the
|
||||||
// SIG_SOUNDSCI1LATE #define to SIG_SINCE_SOUNDSCI1LATE and make it being SCI1LATE+. Although
|
// SIG_SOUNDSCI1LATE #define to SIG_SINCE_SOUNDSCI1LATE and make it being SCI1LATE+. Although
|
||||||
// I guess there are many more changes somewhere
|
// I guess there are many more changes somewhere
|
||||||
|
// TODO: Quest for Glory 4 (SCI2.1) uses the old scheme, we need to detect it accordingly
|
||||||
|
// signature for SCI21 should be "o"
|
||||||
{ SIG_SOUNDSCI21, 9, MAP_CALL(DoSoundStop), NULL, NULL },
|
{ SIG_SOUNDSCI21, 9, MAP_CALL(DoSoundStop), NULL, NULL },
|
||||||
{ SIG_SOUNDSCI21, 10, MAP_CALL(DoSoundPause), NULL, NULL },
|
{ SIG_SOUNDSCI21, 10, MAP_CALL(DoSoundPause), NULL, NULL },
|
||||||
{ SIG_SOUNDSCI21, 11, MAP_CALL(DoSoundFade), NULL, NULL },
|
{ SIG_SOUNDSCI21, 11, MAP_CALL(DoSoundFade), NULL, NULL },
|
||||||
|
@ -543,6 +543,7 @@ SoundResource::SoundResource(uint32 resourceNr, ResourceManager *resMan, SciVers
|
|||||||
|
|
||||||
case SCI_VERSION_1_EARLY:
|
case SCI_VERSION_1_EARLY:
|
||||||
case SCI_VERSION_1_LATE:
|
case SCI_VERSION_1_LATE:
|
||||||
|
case SCI_VERSION_2_1:
|
||||||
data = resource->data;
|
data = resource->data;
|
||||||
// Count # of tracks
|
// Count # of tracks
|
||||||
_trackCount = 0;
|
_trackCount = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user