Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sndcore2: Update AXTransitionAudioBuffer struct #373

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions include/sndcore2/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ extern "C" {
typedef struct AXProfile AXProfile;
typedef struct AXInitParams AXInitParams;
typedef struct AXTransitionAudioBuffer AXTransitionAudioBuffer;
typedef struct AXTransitionAudioBufferDevice AXTransitionAudioBufferDevice;

typedef void(*AXFrameCallback)(void);

Expand Down Expand Up @@ -53,22 +54,34 @@ WUT_CHECK_OFFSET(AXInitParams, 0x00, renderer);
WUT_CHECK_OFFSET(AXInitParams, 0x08, pipeline);
WUT_CHECK_SIZE(AXInitParams, 0x0C);

struct WUT_PACKED AXTransitionAudioBufferDevice {
AXDeviceMode mode;
float unk1;
uint32_t unk2;
BOOL enabled;
};
WUT_CHECK_SIZE(AXTransitionAudioBufferDevice, 0x10);

struct WUT_PACKED AXTransitionAudioBuffer {
WUT_UNKNOWN_BYTES(0x8);
uint32_t length;
WUT_UNKNOWN_BYTES(0x4);
void *audioBuffer;
uint32_t audioBufferLen;
AXDeviceMode tvMode;
WUT_UNKNOWN_BYTES(0xC);
AXDeviceMode drcMode;
WUT_UNKNOWN_BYTES(0xC);
uint32_t unk1;
uint32_t unk2;
uint32_t length;
uint32_t loopPoint;
void *audioBuffer;
uint32_t audioBufferLen;
AXTransitionAudioBufferDevice tv;
AXTransitionAudioBufferDevice drc;
};
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x00, unk1);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x04, unk2);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x08, length);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x0C, loopPoint);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x10, audioBuffer);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x14, audioBufferLen);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x18, tvMode);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x28, drcMode);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x18, tv.mode);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x24, tv.enabled);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x28, drc.mode);
WUT_CHECK_OFFSET(AXTransitionAudioBuffer, 0x34, drc.enabled);
WUT_CHECK_SIZE(AXTransitionAudioBuffer, 0x38);

void
Expand Down
Loading