XPlor/libs/xassets/xloadedsound.cpp

30 lines
407 B
C++
Raw Permalink Normal View History

2025-09-05 18:35:17 -04:00
#include "xloadedsound.h"
2025-08-14 17:30:25 -04:00
2025-09-05 18:35:17 -04:00
XLoadedSound::XLoadedSound()
: XAsset()
, mName()
, mSound()
2025-08-14 17:30:25 -04:00
{
2025-09-10 21:58:26 -04:00
SetName("Loaded Sound");
2025-08-14 17:30:25 -04:00
}
2025-09-05 18:35:17 -04:00
XLoadedSound::~XLoadedSound()
2025-08-14 17:30:25 -04:00
{
}
2025-09-10 21:58:26 -04:00
void XLoadedSound::ParseData(XDataStream *aStream)
2025-08-14 17:30:25 -04:00
{
2025-09-07 12:36:08 -04:00
if (GetPtr() == -1)
{
mName.ParsePtr(aStream, false);
mSound.ParseData(aStream);
}
2025-08-14 17:30:25 -04:00
}
2025-09-05 18:35:17 -04:00
void XLoadedSound::Clear()
2025-08-14 17:30:25 -04:00
{
2025-09-07 12:36:08 -04:00
mName.Clear();
mSound.Clear();
2025-08-14 17:30:25 -04:00
}