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();
|
|
|
|
|
|
|
|
|
|
virtual void ParseData(QDataStream* aStream) override;
|
|
|
|
|
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
|