NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
snd_WaveSoundHandle.h
1#ifndef NW4R_SND_WAVE_SOUND_HANDLE_H
2#define NW4R_SND_WAVE_SOUND_HANDLE_H
3
4/*******************************************************************************
5 * headers
6 */
7
8#include <types.h>
9
10#include "nw4r/ut/ut_NonCopyable.h" // ut::NonCopyable
11
12/*******************************************************************************
13 * types
14 */
15
16// forward declarations
17namespace nw4r { namespace snd { namespace detail { class WaveSound; }}}
18namespace nw4r { namespace snd { class SoundHandle; }}
19
20/*******************************************************************************
21 * classes and functions
22 */
23
24namespace nw4r { namespace snd
25{
26 // [R89JEL]:/bin/RVL/Debug/mainD.elf:.debug::0x30f8a
27 class WaveSoundHandle : private ut::NonCopyable
28 {
29 // methods
30 public:
31 // cdtors
32 WaveSoundHandle(SoundHandle *handle);
33
34 // methods
35 bool IsAttachedSound() const { return mSound != nullptr; }
36
37 void DetachSound();
38
39 // members
40 private:
41 /* base NonCopyable */ // size 0x00, offset 0x00
42 detail::WaveSound *mSound; // size 0x04, offset 0x00
43 }; // size 0x04
44}} // namespace nw4r::snd
45
46#endif // NW4R_SND_WAVE_SOUND_HANDLE_H