Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
BasicPlayer.h
Go to the documentation of this file.
1#ifndef NW4HBM_SND_BASIC_PLAYER_H
2#define NW4HBM_SND_BASIC_PLAYER_H
3
4#include <revolution/types.h>
5#include "snd_types.h"
6
7
8namespace nw4hbm {
9 namespace snd {
10 namespace detail {
11
12 namespace {
13
14 class BasicPlayer {
15 public:
16 BasicPlayer() : mId(-1) {}
17
18 /* 0x08 */ virtual ~BasicPlayer()
19#ifdef MAKE_DTOR_ZERO
20 = 0
21#endif
22 {};
23
24 /* 0x0C */ virtual bool Start() = 0;
25 /* 0x10 */ virtual void Stop() = 0;
26 /* 0x14 */ virtual void Pause(bool flag) = 0;
27 /* 0x18 */ virtual bool IsActive() const = 0;
28 /* 0x1C */ virtual bool IsPrepared() const = 0;
29 /* 0x20 */ virtual bool IsStarted() const = 0;
30 /* 0x24 */ virtual bool IsPause() const = 0;
31 /* 0x28 */ virtual void SetVolume(f32 volume) = 0;
32 /* 0x2C */ virtual void SetPitch(f32 pitch) = 0;
33 /* 0x30 */ virtual void SetPan(f32 pan) = 0;
34 /* 0x34 */ virtual void SetSurroundPan(f32 surroundPan) = 0;
35 /* 0x38 */ virtual void SetPan2(f32 pan2) = 0;
36 /* 0x3C */ virtual void SetSurroundPan2(f32 surroundPan2) = 0;
37 /* 0x40 */ virtual void SetLpfFreq(f32 lpfFreq) = 0;
38 /* 0x44 */ virtual f32 GetVolume() const = 0;
39 /* 0x48 */ virtual f32 GetPitch() const = 0;
40 /* 0x4C */ virtual f32 GetPan() const = 0;
41 /* 0x50 */ virtual f32 GetSurroundPan() const = 0;
42 /* 0x54 */ virtual f32 GetPan2() const = 0;
43 /* 0x58 */ virtual f32 GetSurroundPan2() const = 0;
44 /* 0x5C */ virtual f32 GetLpfFreq() const = 0;
45 /* 0x60 */ virtual void SetOutputLine(int lineFlag) = 0;
46 /* 0x64 */ virtual void SetMainOutVolume(f32 volume) = 0;
47 /* 0x68 */ virtual void SetMainSend(f32 send) = 0;
48 /* 0x6C */ virtual void SetFxSend(AuxBus bus, f32 send) = 0;
49 /* 0x70 */ virtual void SetRemoteOutVolume(int remoteIndex, f32 volume) = 0;
50 /* 0x74 */ virtual void SetRemoteSend(int remoteIndex, f32 send) = 0;
51 /* 0x78 */ virtual void SetRemoteFxSend(int remoteIndex, f32 send) = 0;
52 /* 0x7C */ virtual int GetOutputLine() const = 0;
53 /* 0x80 */ virtual f32 GetMainOutVolume() const = 0;
54 /* 0x84 */ virtual f32 GetMainSend() const = 0;
55 /* 0x88 */ virtual f32 GetFxSend(AuxBus bus) const = 0;
56 /* 0x8C */ virtual f32 GetRemoteOutVolume(int remoteIndex) const = 0;
57 /* 0x90 */ virtual f32 GetRemoteSend(int remoteIndex) const = 0;
58 /* 0x94 */ virtual f32 GetRemoteFxSend(int remoteIndex) const = 0;
59
60 u32 GetId() const { return mId; }
61 void SetId(u32 id) { mId = id; }
62
63 private:
64 /* 0x04 */ u32 mId;
65 };
66
67 } // namespace
68
69 } // namespace detail
70 } // namespace snd
71} // namespace nw4hbm
72
73#endif
u32 mId
Definition BasicPlayer.h:64
static BOOL flag
Definition DEMOAVX.c:20
static u16 const id[4]
Definition d_a_obj_smtile.cpp:269
unsigned long u32
Definition types.h:12
float f32
Definition types.h:25
AuxBus
Definition snd_types.h:73
Definition HBMAnmController.h:6