#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< uint32 > | Freq |
std::vector< std::string > | Name |
std::vector< uint32 > | NbSample |
std::vector< uint32 > | OffsetAdpcm |
std::vector< uint32 > | OffsetMono16 |
std::vector< uint32 > | SizeAdpcm |
std::vector< uint32 > | SizeMono16 |
uint32 | 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 }; |
|
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 } |
|
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 } |
|
Definition at line 529 of file audio_mixer_user.h. References Freq, NbSample, OffsetAdpcm, OffsetMono16, s, SizeAdpcm, SizeMono16, and Version.
|
|
Definition at line 501 of file audio_mixer_user.h. Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial(). |
|
Definition at line 499 of file audio_mixer_user.h. Referenced by NLSOUND::CAudioMixerUser::buildSampleBankList(), and NLSOUND::CSampleBank::load(). |
|
Definition at line 500 of file audio_mixer_user.h. Referenced by addSample(), and serial(). |
|
Definition at line 503 of file audio_mixer_user.h. Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial(). |
|
Definition at line 502 of file audio_mixer_user.h. Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial(). |
|
Definition at line 505 of file audio_mixer_user.h. Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial(). |
|
Definition at line 504 of file audio_mixer_user.h. Referenced by addSample(), NLSOUND::CSampleBank::load(), and serial(). |
|
Definition at line 498 of file audio_mixer_user.h. Referenced by serial(), and TSampleBankHeader(). |