mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-21 08:26:43 +02:00
27 lines
1.3 KiB
C++
27 lines
1.3 KiB
C++
#pragma once
|
|
#include <array>
|
|
#include <cstdint>
|
|
|
|
// Remote skater sound.
|
|
namespace dingosdk::game::build::v20260929::native_audio {
|
|
// Skater sound component submit (handle, frame). Hooked to capture local sound.
|
|
inline constexpr std::uintptr_t submit = 0x44a370;
|
|
inline constexpr std::array<unsigned char, 17> submit_prefix{
|
|
0x4c,0x8b,0xc9,0x4c,0x8b,0xc2,0x48,0x8b,0x0d,0xfb,0x95,0xd9,0x06,0x41,0x0f,0xb7,
|
|
0x11};
|
|
// Merges a partial sound frame into owned storage (dst, src, masks). Primitive fields only.
|
|
inline constexpr std::uintptr_t frame_copy = 0x58d6540;
|
|
inline constexpr std::array<unsigned char, 15> frame_copy_prefix{
|
|
0x40,0x53,0x56,0x57,0x41,0xf6,0x00,0x01,0x4c,0x8d,0x91,0x64,0x01,0x00,0x00};
|
|
// Native sound frame difference function (audited with frame_copy). Reference only.
|
|
inline constexpr std::uintptr_t frame_difference = 0x58d53a0;
|
|
// Resets a sound frame to its defaults.
|
|
inline constexpr std::uintptr_t frame_reset = 0x58ced60;
|
|
inline constexpr std::array<unsigned char, 14> frame_reset_prefix{
|
|
0xc5,0xfc,0x10,0x05,0x68,0x49,0xb0,0x00,0x33,0xc0,0xc5,0xfc,0x11,0x01};
|
|
// Component stop operation; clears its handle (component + 0x74).
|
|
inline constexpr std::uintptr_t stop_sound = 0x43e540;
|
|
inline constexpr std::array<unsigned char, 15> stop_sound_prefix{
|
|
0x40,0x53,0x48,0x83,0xec,0x20,0x0f,0xb7,0x11,0x48,0x8b,0xd9,0x66,0x85,0xd2};
|
|
}
|