Moved the SetFormat to 4361

Source: Flight Academy (JPN)
This commit is contained in:
jarupxx 2017-03-31 17:48:30 +09:00
parent fdf2c02cf2
commit e9314810e3
3 changed files with 85 additions and 60 deletions

View File

@ -623,6 +623,82 @@ OOVPA_XREF(IDirectSoundBuffer_SetMixBins, 4361, 12,
{ 0x12, 0xC8 }, // (Offset,Value)-Pair #12
OOVPA_END;
// ******************************************************************
// * DirectSound::CDirectSoundVoice::SetFormat
// ******************************************************************
OOVPA_XREF(DirectSound_CDirectSoundVoice_SetFormat, 4361, 8,
XREF_DirectSound_CDirectSoundVoice_SetFormat,
XRefZero)
{ 0x07, 0x4E },
{ 0x10, 0xE8 },
{ 0x19, 0xD8 },
{ 0x22, 0xFF },
{ 0x2B, 0x0C },
{ 0x34, 0xFF },
{ 0x3F, 0x8B },
{ 0x46, 0x00 },
OOVPA_END;
// ******************************************************************
// * DirectSound::CDirectSoundBuffer::SetFormat
// ******************************************************************
OOVPA_XREF(DirectSound_CDirectSoundBuffer_SetFormat, 4361, 8,
XREF_DirectSound_CDirectSoundBuffer_SetFormat,
XRefOne)
XREF_ENTRY( 0x32, XREF_DirectSound_CDirectSoundVoice_SetFormat ),
{ 0x0C, 0x00 },
{ 0x12, 0x85 },
{ 0x1C, 0x15 },
{ 0x26, 0xEB },
{ 0x30, 0x10 },
{ 0x3A, 0x74 },
{ 0x47, 0x8B },
OOVPA_END;
// ******************************************************************
// * IDirectSoundBuffer_SetFormat
// ******************************************************************
OOVPA_XREF(IDirectSoundBuffer_SetFormat, 4361, 8,
XRefNoSaveIndex,
XRefOne)
XREF_ENTRY( 0x15, XREF_DirectSound_CDirectSoundBuffer_SetFormat ),
{ 0x02, 0x24 },
{ 0x06, 0x24 },
{ 0x0A, 0x83 },
{ 0x0E, 0xD9 },
{ 0x12, 0xC8 },
{ 0x19, 0xC2 },
{ 0x1A, 0x08 },
OOVPA_END;
// ******************************************************************
// * DirectSound::CDirectSoundStream::SetFormat
// ******************************************************************
OOVPA_XREF(DirectSound_CDirectSoundStream_SetFormat, 4361, 9,
XRefNoSaveIndex,
XRefOne)
XREF_ENTRY( 0x36, XREF_DirectSound_CDirectSoundVoice_SetFormat ),
{ 0x00, 0x56 },
{ 0x0C, 0x00 },
{ 0x14, 0x74 },
{ 0x21, 0xB8 },
{ 0x2A, 0x24 },
{ 0x35, 0xE8 },
{ 0x40, 0x68 },
{ 0x4B, 0x8B },
OOVPA_END;
// ******************************************************************
// * DirectSoundCreate, 4361
// ******************************************************************
@ -673,6 +749,10 @@ OOVPATable DSound_4361[] = {
REGISTER_OOVPA(DirectSound_CDirectSoundVoice_SetMixBins, 4361, XREF),
REGISTER_OOVPA(DirectSound_CDirectSoundBuffer_SetMixBins, 4361, XREF),
REGISTER_OOVPA(IDirectSoundBuffer_SetMixBins, 4361, PATCH),
REGISTER_OOVPA(DirectSound_CDirectSoundVoice_SetFormat, 4361, XREF),
REGISTER_OOVPA(DirectSound_CDirectSoundBuffer_SetFormat, 4361, XREF),
REGISTER_OOVPA(IDirectSoundBuffer_SetFormat, 4361, PATCH),
REGISTER_OOVPA(DirectSound_CDirectSoundStream_SetFormat, 4361, PATCH),
};
// ******************************************************************

View File

@ -503,58 +503,17 @@ OOVPA_END;
// ******************************************************************
// * DirectSound::CDirectSoundVoice::SetFormat
// ******************************************************************
OOVPA_XREF(DirectSound_CDirectSoundVoice_SetFormat, 4627, 8,
XREF_DirectSound_CDirectSoundVoice_SetFormat,
XRefZero)
{ 0x07, 0x4E },
{ 0x10, 0xE8 },
{ 0x19, 0xD8 },
{ 0x22, 0xFF },
{ 0x2B, 0x0C },
{ 0x34, 0xFF },
{ 0x3F, 0x8B },
{ 0x46, 0x00 },
OOVPA_END;
#define DirectSound_CDirectSoundVoice_SetFormat_4627 DirectSound_CDirectSoundVoice_SetFormat_4361
// ******************************************************************
// * DirectSound::CDirectSoundBuffer::SetFormat
// ******************************************************************
OOVPA_XREF(DirectSound_CDirectSoundBuffer_SetFormat, 4627, 8,
XREF_DirectSound_CDirectSoundBuffer_SetFormat,
XRefOne)
XREF_ENTRY( 0x32, XREF_DirectSound_CDirectSoundVoice_SetFormat ),
{ 0x0C, 0x00 },
{ 0x12, 0x85 },
{ 0x1C, 0x15 },
{ 0x26, 0xEB },
{ 0x30, 0x10 },
{ 0x3A, 0x74 },
{ 0x47, 0x8B },
OOVPA_END;
#define DirectSound_CDirectSoundBuffer_SetFormat_4627 DirectSound_CDirectSoundBuffer_SetFormat_4361
// ******************************************************************
// * IDirectSoundBuffer_SetFormat
// ******************************************************************
OOVPA_XREF(IDirectSoundBuffer_SetFormat, 4627, 8,
XRefNoSaveIndex,
XRefOne)
XREF_ENTRY( 0x15, XREF_DirectSound_CDirectSoundBuffer_SetFormat ),
{ 0x02, 0x24 },
{ 0x06, 0x24 },
{ 0x0A, 0x83 },
{ 0x0E, 0xD9 },
{ 0x12, 0xC8 },
{ 0x19, 0xC2 },
{ 0x1A, 0x08 },
OOVPA_END;
#define IDirectSoundBuffer_SetFormat_4627 IDirectSoundBuffer_SetFormat_4361
// ******************************************************************
// * CMcpxStream_Pause
@ -1606,6 +1565,7 @@ OOVPATable DSound_4627[] = {
REGISTER_OOVPA(DirectSound_CDirectSoundVoice_SetFormat, 4627, XREF),
REGISTER_OOVPA(DirectSound_CDirectSoundBuffer_SetFormat, 4627, XREF),
REGISTER_OOVPA(IDirectSoundBuffer_SetFormat, 4627, PATCH),
REGISTER_OOVPA(DirectSound_CDirectSoundStream_SetFormat, 4361, PATCH),
REGISTER_OOVPA(DirectSound_CDirectSoundStream_SetMixBinVolumes, 4627, XREF),
REGISTER_OOVPA(DirectSound_CDirectSound_EnableHeadphones, 4627, XREF),
REGISTER_OOVPA(IDirectSound_EnableHeadphones, 4627, PATCH),

View File

@ -1612,22 +1612,7 @@ OOVPA_END;
// ******************************************************************
// * DirectSound::CDirectSoundStream::SetFormat
// ******************************************************************
OOVPA_XREF(DirectSound_CDirectSoundStream_SetFormat, 5558, 9,
XRefNoSaveIndex,
XRefOne)
XREF_ENTRY( 0x36, XREF_DirectSound_CDirectSoundVoice_SetFormat ),
{ 0x00, 0x56 },
{ 0x0C, 0x00 },
{ 0x14, 0x74 },
{ 0x21, 0xB8 },
{ 0x2A, 0x24 },
{ 0x35, 0xE8 },
{ 0x40, 0x68 },
{ 0x4B, 0x8B },
OOVPA_END;
#define DirectSound_CDirectSoundStream_SetFormat_5558 DirectSound_CDirectSoundStream_SetFormat_4361
// ******************************************************************
// * DirectSound::CDirectSoundStream::SetMixBins