mirror of
https://github.com/zeldaret/ss
synced 2026-05-28 16:31:21 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
31 lines
508 B
C++
31 lines
508 B
C++
#ifndef NW4R_SND_WAVE_SOUND_HANDLE_H
|
|
#define NW4R_SND_WAVE_SOUND_HANDLE_H
|
|
#include "nw4r/snd/snd_WaveSound.h"
|
|
#include "nw4r/types_nw4r.h"
|
|
#include "nw4r/ut.h"
|
|
|
|
|
|
namespace nw4r {
|
|
namespace snd {
|
|
|
|
class WaveSoundHandle : private ut::NonCopyable {
|
|
public:
|
|
~WaveSoundHandle() {
|
|
DetachSound();
|
|
}
|
|
|
|
void DetachSound();
|
|
|
|
bool IsAttachedSound() const {
|
|
return mSound != NULL;
|
|
}
|
|
|
|
private:
|
|
detail::WaveSound *mSound; // at 0x0
|
|
};
|
|
|
|
} // namespace snd
|
|
} // namespace nw4r
|
|
|
|
#endif
|