Add XMA format parsing data fields
This commit is contained in:
parent
8cfb82e03d
commit
01d2b95417
@ -1,8 +1,12 @@
|
|||||||
#include "xaudioxmaformat.h"
|
#include "xaudioxmaformat.h"
|
||||||
|
|
||||||
XAudioXmaFormat::XAudioXmaFormat()
|
XAudioXmaFormat::XAudioXmaFormat()
|
||||||
|
: XAsset()
|
||||||
|
, mSampleRate(0)
|
||||||
|
, mChannelCount(0)
|
||||||
|
, mDecodeBufferSize(0)
|
||||||
{
|
{
|
||||||
|
SetName("Audio XMA Format");
|
||||||
}
|
}
|
||||||
|
|
||||||
XAudioXmaFormat::~XAudioXmaFormat()
|
XAudioXmaFormat::~XAudioXmaFormat()
|
||||||
@ -10,12 +14,16 @@ XAudioXmaFormat::~XAudioXmaFormat()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void XAudioXmaFormat::ParseData(QDataStream *aStream)
|
void XAudioXmaFormat::ParseData(XDataStream *aStream)
|
||||||
{
|
{
|
||||||
|
mSampleRate = aStream->ParseUInt32(QString("%1 sample rate").arg(GetName()));
|
||||||
|
mChannelCount = aStream->ParseUInt8(QString("%1 channel count").arg(GetName()));
|
||||||
|
mDecodeBufferSize = aStream->ParseUInt8(QString("%1 decode buffer size").arg(GetName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void XAudioXmaFormat::Clear()
|
void XAudioXmaFormat::Clear()
|
||||||
{
|
{
|
||||||
|
mSampleRate = 0;
|
||||||
|
mChannelCount = 0;
|
||||||
|
mDecodeBufferSize = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user