Skip to content

Commit

Permalink
Fix a few types for m4a.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatix committed Jun 10, 2018
1 parent a2e6870 commit 732e4c1
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions include/pokeagb/core/m4a.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ struct WaveData
#define TONEDATA_P_S_PAN 0xc0
#define TONEDATA_P_S_PAM TONEDATA_P_S_PAN

#define CHN_TYPE_FIXED_FREQ 0x8
#define CHN_TYPE_REVERSE 0x10
#define CHN_TYPE_COMP 0x20
#define CHN_TYPE_SYNTH 0x40

struct ToneData
{
u8 type;
Expand Down Expand Up @@ -143,14 +148,14 @@ struct SoundChannel
u8 pr;
u8 rp;
u8 d3[3];
u32 ct;
u32 fw;
u32 ct; // current sample countdown
u32 fw; // fine sample inter position
u32 freq;
struct WaveData *wav;
u32 cp;
u32 cp; // current position of sample playback (pointer)
struct MusicPlayerTrack *track;
u32 pp;
u32 np;
struct SoundChannel *pp;
struct SoundChannel *np;
u32 d4;
u16 xpi;
u16 xpc;
Expand Down Expand Up @@ -181,9 +186,9 @@ struct SoundInfo
u8 pcmDmaPeriod; // number of V-blanks per PCM DMA
u8 maxLines;
u8 gap[3];
s32 pcmSamplesPerVBlank;
s32 pcmFreq;
s32 divFreq;
u32 pcmSamplesPerVBlank;
u32 pcmFreq;
u32 divFreq;
struct CgbChannel *cgbChans;
u32 func;
u32 intp;
Expand Down

0 comments on commit 732e4c1

Please sign in to comment.