mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-31 17:01:36 -04:00
001367ab87
* d_a_tag_evtarea mostly done, work on d_a_npc * work on d_a_npc_ash * work on Z2SoundHandles * Z2SoundObject, JAUSoundAnimator OK * Update Progress.md --------- Co-authored-by: randomsalience <randomsalience@gmail.com>
35 lines
723 B
C
35 lines
723 B
C
#ifndef JAUAUDIBLEPARAM_H
|
|
#define JAUAUDIBLEPARAM_H
|
|
|
|
#include "dolphin/types.h"
|
|
|
|
struct JAUAudibleParam {
|
|
f32 getDopplerPower() const {
|
|
return (u32)((*(u8*)&field_0x0.raw >> 4) & 0xf) * (1.0f / 15.0f);
|
|
}
|
|
union {
|
|
struct {
|
|
u16 f0;
|
|
u16 f1;
|
|
} half;
|
|
struct {
|
|
u8 b0_0 : 1;
|
|
u8 b0_1 : 1;
|
|
u8 b0_2 : 1;
|
|
u8 b0_3 : 1;
|
|
u8 b0_4 : 1;
|
|
u8 b0_5 : 1;
|
|
u8 b0_6 : 1;
|
|
u8 b0_7 : 1;
|
|
u8 b1_0 : 1;
|
|
u8 b1_1 : 1;
|
|
u8 b1_2_7 : 6;
|
|
u8 b2;
|
|
u8 b3;
|
|
} bytes;
|
|
u32 raw;
|
|
} field_0x0;
|
|
};
|
|
|
|
#endif /* JAUAUDIBLEPARAM_H */
|