#include "xloadedsound.h"

XLoadedSound::XLoadedSound()
    : XAsset()
    , mName()
    , mSound()
{
    SetName("Loaded Sound");
}

XLoadedSound::~XLoadedSound()
{

}

void XLoadedSound::ParseData(XDataStream *aStream)
{
    if (GetPtr() == -1)
    {
        mName.ParsePtr(aStream, false);
        mSound.ParseData(aStream);
    }
}

void XLoadedSound::Clear()
{
    mName.Clear();
    mSound.Clear();
}
