Repository navigation
Conversation
There was a problem hiding this comment.
checked against in IDA, notes inline.
Not in the diff:
CAEAudioHardware::field_86is padding (never accessed).CAEAudioHardware::field_F64..field_100Cis atBeatInfo(seeGetBeatInfo0x4D8FA0).CAudioEngine::field_150/field_1F8belong toCAEFrontendAudioEntity(real size 0x1EC, retune twin loops at +0x9C/+0x144);field_1F38is the tail ofCAEPedlessSpeechAudioEntity(0x118).eRadioIDlacks -1 (set byReset/StopCutsceneTrack) and 0.
| float m_fStreamFaderScalingFactor; | ||
| float m_fNonStreamFaderScalingFactor; | ||
| float field_428; | ||
| float field_42C; | ||
| float m_fNonStreamFaderScalingFactor; // order swapped with m_fStreamFaderScalingFactor? |
There was a problem hiding this comment.
Swapped: SetNonStreamFaderScalingFactor (0x4D95A0) writes 0x420, SetStreamFaderScalingFactor (0x4D95B0) writes 0x424.
| float m_fStreamFaderScalingFactor; | |
| float m_fNonStreamFaderScalingFactor; | |
| float field_428; | |
| float field_42C; | |
| float m_fNonStreamFaderScalingFactor; // order swapped with m_fStreamFaderScalingFactor? | |
| float m_fNonStreamFaderScalingFactor; | |
| float m_fStreamFaderScalingFactor; |
| VALIDATE_OFFSET(CAEAudioHardware, m_fStreamFaderScalingFactor, 0x420); | ||
| VALIDATE_OFFSET(CAEAudioHardware, m_fNonStreamFaderScalingFactor, 0x424); |
There was a problem hiding this comment.
| VALIDATE_OFFSET(CAEAudioHardware, m_fStreamFaderScalingFactor, 0x420); | |
| VALIDATE_OFFSET(CAEAudioHardware, m_fNonStreamFaderScalingFactor, 0x424); | |
| VALIDATE_OFFSET(CAEAudioHardware, m_fNonStreamFaderScalingFactor, 0x420); | |
| VALIDATE_OFFSET(CAEAudioHardware, m_fStreamFaderScalingFactor, 0x424); |
| bool m_bPrevMaxSecondarySlowFadeout; | ||
| bool m_bPrevMaxGlobalSlowFadeout; |
There was a problem hiding this comment.
Optional: "Secondary" is the loudest frontend sound (channel flag 0x1), "Global" the loudest overall; the bools are its smooth ducking flag (0x80). Mobile SDK names:
| bool m_bPrevMaxSecondarySlowFadeout; | |
| bool m_bPrevMaxGlobalSlowFadeout; | |
| bool m_bLoudestFrontendSoundWasSmoothDucking; | |
| bool m_bLoudestOverallSoundWasSmoothDucking; |
| float m_fPrevMaxVolumeSecondary; | ||
| float m_fPrevMaxVolumeGlobal; |
There was a problem hiding this comment.
| float m_fPrevMaxVolumeSecondary; | |
| float m_fPrevMaxVolumeGlobal; | |
| float m_fLoudestFrontendSoundVolumeLastFrame; | |
| float m_fLoudestOverallSoundVolumeLastFrame; |
| VALIDATE_OFFSET(CAEAudioHardware, m_bPrevMaxSecondarySlowFadeout, 0x2); | ||
| VALIDATE_OFFSET(CAEAudioHardware, m_bPrevMaxGlobalSlowFadeout, 0x3); |
There was a problem hiding this comment.
| VALIDATE_OFFSET(CAEAudioHardware, m_bPrevMaxSecondarySlowFadeout, 0x2); | |
| VALIDATE_OFFSET(CAEAudioHardware, m_bPrevMaxGlobalSlowFadeout, 0x3); | |
| VALIDATE_OFFSET(CAEAudioHardware, m_bLoudestFrontendSoundWasSmoothDucking, 0x2); | |
| VALIDATE_OFFSET(CAEAudioHardware, m_bLoudestOverallSoundWasSmoothDucking, 0x3); |
| VALIDATE_OFFSET(CAudioEngine, field_A1, 0xA1); | ||
| VALIDATE_OFFSET(CAudioEngine, field_B0, 0xB0); | ||
| VALIDATE_OFFSET(CAudioEngine, field_B1, 0xB1); | ||
| VALIDATE_OFFSET(CAudioEngine, m_nSavedRadioStationId, 0x3); |
There was a problem hiding this comment.
| VALIDATE_OFFSET(CAudioEngine, m_nSavedRadioStationId, 0x3); | |
| VALIDATE_OFFSET(CAudioEngine, _pad3, 0x3); |
| bool IsVehicleRadioActive(); | ||
| char* GetRadioStationName(signed char id); | ||
| void StartRadio(int stationId, float bass, int arg, char unused); | ||
| void StartRadio(eRadioID stationId, float bass, int arg, char unused); |
There was a problem hiding this comment.
Real signature: _ZN20CAERadioTrackManager10StartRadioEaafh. The args go to settings2 +0x25/+0x26/+0x28, the last one is passed to 0x4EAC30 (Service passes 1).
| void StartRadio(eRadioID stationId, float bass, int arg, char unused); | |
| void StartRadio(eRadioID stationId, Int8 bassSetting, float bassGain, bool skipTrack); |
| void CAERadioTrackManager::StartRadio(eRadioID stationId, float bass, int arg, char unused) { | ||
| plugin::CallMethod<0x4EB3C0, CAERadioTrackManager*, eRadioID, float, int, char>(this, stationId, bass, arg, unused); |
There was a problem hiding this comment.
| void CAERadioTrackManager::StartRadio(eRadioID stationId, float bass, int arg, char unused) { | |
| plugin::CallMethod<0x4EB3C0, CAERadioTrackManager*, eRadioID, float, int, char>(this, stationId, bass, arg, unused); | |
| void CAERadioTrackManager::StartRadio(eRadioID stationId, Int8 bassSetting, float bassGain, bool skipTrack) { | |
| plugin::CallMethod<0x4EB3C0, CAERadioTrackManager*, eRadioID, Int8, float, bool>(this, stationId, bassSetting, bassGain, skipTrack); |
| void Service(); | ||
| void ServiceLoadingTune(float fade); | ||
| void StartRadio(int radioStation, char arg); | ||
| void StartRadio(eRadioID radioStation, char arg); |
There was a problem hiding this comment.
| void StartRadio(eRadioID radioStation, char arg); | |
| void StartRadio(eRadioID radioStation, char bassSetting); |
| void CAudioEngine::StartRadio(eRadioID radioStation, char arg) { | ||
| plugin::CallMethod<0x507DC0, CAudioEngine*, eRadioID, char>(this, radioStation, arg); |
There was a problem hiding this comment.
| void CAudioEngine::StartRadio(eRadioID radioStation, char arg) { | |
| plugin::CallMethod<0x507DC0, CAudioEngine*, eRadioID, char>(this, radioStation, arg); | |
| void CAudioEngine::StartRadio(eRadioID radioStation, char bassSetting) { | |
| plugin::CallMethod<0x507DC0, CAudioEngine*, eRadioID, char>(this, radioStation, bassSetting); |
Naming unknown fields in CAudioEngine and CAEAudioHardware.
Applied eRadioID enum for functions using it. Previously int was declared in some places, but it is all passed into function at 4EB3C0, where only low byte is extracted.