blob: a1686e17596795bcd5bafcdf81ff9f3d5f007b7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef D_SND_ANIM_SOUND_H
#define D_SND_ANIM_SOUND_H
#include "d/snd/d_snd_types.h"
#include "nw4r/snd/snd_AnimSound.h"
// Could also inherit from AnimSound
class dSndAnimSound_c {
public:
dSndAnimSound_c(dSoundSource_c *source);
void setData(const void *data, const char *name);
void setFrame(f32 frame);
void resetFrame(f32 frame);
void setRate(f32 rate);
void setCallback(dSoundSource_c *source);
void setCallback(nw4r::snd::AnimSound::Callback cb, void *userData);
void shutdown() {
mSound.Shutdown();
}
void setField_0x98(f32 value) {
field_0x98 = value;
}
private:
static void animCallback(int, s32, const char *, UNKWORD, void *userData);
/* 0x00 */ nw4r::snd::AnimSound mSound;
/* 0x90 */ const void *mpData;
/* 0x94 */ f32 mRate; // TODO - is this actually used?
/* 0x98 */ f32 field_0x98;
/* 0x9C */ bool mNeedFrameReset;
/* 0xA0 */ nw4r::snd::AnimSound::PlayDirection mDirection;
};
#endif
|