NLSOUND::CAudioMixerUser::TSampleBankHeader Struct Reference

#include <audio_mixer_user.h>


Public Types

enum  { sample_bank_header_version = 7 }

Public Member Functions

void addSample (const std::string &name, uint32 frequency, uint32 nbSample, uint32 sizeMono16, uint32 sizeAdpcm)
void serial (NLMISC::IStream &s)
 TSampleBankHeader ()

Data Fields

std::vector< uint32Freq
std::vector< std::string > Name
std::vector< uint32NbSample
std::vector< uint32OffsetAdpcm
std::vector< uint32OffsetMono16
std::vector< uint32SizeAdpcm
std::vector< uint32SizeMono16
uint32 Version


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
sample_bank_header_version 

Definition at line 493 of file audio_mixer_user.h.

00494                 {
00495                         // Mind to increment the version number each time the format change
00496                         sample_bank_header_version = 7,
00497                 };


Constructor & Destructor Documentation

NLSOUND::CAudioMixerUser::TSampleBankHeader::TSampleBankHeader  )  [inline]
 

Definition at line 507 of file audio_mixer_user.h.

References sample_bank_header_version, and Version.

00508                 {
00509                         Version = sample_bank_header_version;
00510                 }


Member Function Documentation

void NLSOUND::CAudioMixerUser::TSampleBankHeader::addSample const std::string &  name,
uint32  frequency,
uint32  nbSample,
uint32  sizeMono16,
uint32  sizeAdpcm
[inline]
 

Definition at line 512 of file audio_mixer_user.h.

References Freq, NbSample, OffsetAdpcm, OffsetMono16, SizeAdpcm, SizeMono16, and uint32.

Referenced by NLSOUND::CAudioMixerUser::buildSampleBankList().

00513                 {
00514                         Name.push_back(name);
00515                         Freq.push_back(frequency);
00516                         NbSample.push_back(nbSample);
00517                         uint32 off16;
00518                         uint32 offAdpcm;
00519                         off16 = std::accumulate(SizeMono16.begin(), SizeMono16.end(), 0);
00520                         off16 = std::accumulate(SizeAdpcm.begin(), SizeAdpcm.end(), off16);
00521                         OffsetMono16.push_back(off16);
00522                         SizeMono16.push_back(sizeMono16);
00523                         offAdpcm = std::accumulate(SizeMono16.begin(), SizeMono16.end(), 0);
00524                         offAdpcm = std::accumulate(SizeAdpcm.begin(), SizeAdpcm.end(), offAdpcm);
00525                         OffsetAdpcm.push_back(offAdpcm);
00526                         SizeAdpcm.push_back(sizeAdpcm);
00527                 }

void NLSOUND::CAudioMixerUser::TSampleBankHeader::serial NLMISC::IStream s  )  [inline]
 

Definition at line 529 of file audio_mixer_user.h.

References Freq, NbSample, OffsetAdpcm, OffsetMono16, s, SizeAdpcm, SizeMono16, and Version.

00530                 {
00531                         s.serialCheck(Version);
00532                         s.serialCont(Name);
00533                         s.serialCont(Freq);
00534                         s.serialCont(NbSample);
00535                         s.serialCont(OffsetMono16);
00536                         s.serialCont(OffsetAdpcm);
00537                         s.serialCont(SizeMono16);
00538                         s.serialCont(SizeAdpcm);
00539                 }


Field Documentation

std::vector<uint32> NLSOUND::CAudioMixerUser::TSampleBankHeader::Freq
 

Definition at line 501 of file audio_mixer_user.h.

Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial().

std::vector<std::string> NLSOUND::CAudioMixerUser::TSampleBankHeader::Name
 

Definition at line 499 of file audio_mixer_user.h.

Referenced by NLSOUND::CAudioMixerUser::buildSampleBankList(), and NLSOUND::CSampleBank::load().

std::vector<uint32> NLSOUND::CAudioMixerUser::TSampleBankHeader::NbSample
 

Definition at line 500 of file audio_mixer_user.h.

Referenced by addSample(), and serial().

std::vector<uint32> NLSOUND::CAudioMixerUser::TSampleBankHeader::OffsetAdpcm
 

Definition at line 503 of file audio_mixer_user.h.

Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial().

std::vector<uint32> NLSOUND::CAudioMixerUser::TSampleBankHeader::OffsetMono16
 

Definition at line 502 of file audio_mixer_user.h.

Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial().

std::vector<uint32> NLSOUND::CAudioMixerUser::TSampleBankHeader::SizeAdpcm
 

Definition at line 505 of file audio_mixer_user.h.

Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial().

std::vector<uint32> NLSOUND::CAudioMixerUser::TSampleBankHeader::SizeMono16
 

Definition at line 504 of file audio_mixer_user.h.

Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial().

uint32 NLSOUND::CAudioMixerUser::TSampleBankHeader::Version
 

Definition at line 498 of file audio_mixer_user.h.

Referenced by serial(), and TSampleBankHeader().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 14:30:35 2004 for NeL by doxygen 1.3.6