XPlor/libs/xassets/xsoundfileref.h

27 lines
501 B
C
Raw Permalink Normal View History

2025-08-14 17:30:25 -04:00
#ifndef XSOUNDFILEREF_H
#define XSOUNDFILEREF_H
#include "xasset.h"
2025-09-05 18:35:17 -04:00
#include "xloadedsound.h"
#include "xstreamedsound.h"
2025-08-14 17:30:25 -04:00
2025-09-07 12:36:08 -04:00
class XSoundFile;
2025-08-14 17:30:25 -04:00
class XSoundFileRef : public XAsset
{
public:
2025-09-05 18:35:17 -04:00
explicit XSoundFileRef();
2025-09-07 12:36:08 -04:00
XSoundFileRef(XSoundFile& aParent);
2025-09-05 18:35:17 -04:00
~XSoundFileRef();
2025-09-10 21:58:26 -04:00
virtual void ParseData(XDataStream* aStream) override;
2025-09-05 18:35:17 -04:00
virtual void Clear() override;
private:
2025-09-07 12:36:08 -04:00
XSoundFile* mParent;
XLoadedSound mLoadedSnd;
2025-09-05 18:35:17 -04:00
XStreamedSound mStreamSnd;
2025-08-14 17:30:25 -04:00
};
#endif // XSOUNDFILEREF_H