2016-05-03 01:16:26 +00:00
|
|
|
#include "amuse/AudioGroupSampleDirectory.hpp"
|
|
|
|
#include "amuse/Common.hpp"
|
|
|
|
|
|
|
|
namespace amuse
|
|
|
|
{
|
|
|
|
|
|
|
|
void AudioGroupSampleDirectory::Entry::swapBig()
|
|
|
|
{
|
|
|
|
m_sfxId = SBig(m_sfxId);
|
|
|
|
m_sampleOff = SBig(m_sampleOff);
|
|
|
|
m_unk = SBig(m_unk);
|
|
|
|
m_sampleRate = SBig(m_sampleRate);
|
|
|
|
m_numSamples = SBig(m_numSamples);
|
|
|
|
m_loopStartSample = SBig(m_loopStartSample);
|
|
|
|
m_loopLengthSamples = SBig(m_loopLengthSamples);
|
|
|
|
m_adpcmParmOffset = SBig(m_adpcmParmOffset);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AudioGroupSampleDirectory::ADPCMParms::swapBig()
|
|
|
|
{
|
|
|
|
m_bytesPerFrame = SBig(m_bytesPerFrame);
|
|
|
|
m_hist1 = SBig(m_hist1);
|
|
|
|
m_hist2 = SBig(m_hist2);
|
2016-05-11 04:48:08 +00:00
|
|
|
for (int i=0 ; i<8 ; ++i)
|
|
|
|
{
|
|
|
|
m_coefs[i][0] = SBig(m_coefs[i][0]);
|
|
|
|
m_coefs[i][1] = SBig(m_coefs[i][1]);
|
|
|
|
}
|
2016-05-03 01:16:26 +00:00
|
|
|
}
|
|
|
|
|
2016-05-09 07:22:58 +00:00
|
|
|
AudioGroupSampleDirectory::AudioGroupSampleDirectory(const unsigned char* data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-05-03 01:16:26 +00:00
|
|
|
}
|