mirror of
https://github.com/zeldaret/tp
synced 2026-07-02 20:46:37 -04:00
6f96e66518
* some JAudio work * audio cleanup checkpoint * checkpoint more audio cleanup * fix symbols * more z2 cleanup * fix regression * fix build * some fixes
37 lines
688 B
C
37 lines
688 B
C
#ifndef JAUAUDIBLEPARAM_H
|
|
#define JAUAUDIBLEPARAM_H
|
|
|
|
#include <dolphin/types.h>
|
|
|
|
/**
|
|
* @ingroup jsystem-jaudio
|
|
*
|
|
*/
|
|
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 : 4;
|
|
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 */
|