libgig
4.0.0
|
#include <Akai.h>
Public Member Functions | |
AkaiDirEntry | GetDirEntry () |
bool | LoadSampleData () |
Load sample into RAM. More... | |
void | ReleaseSampleData () |
release the samples once you used them if you don't want to be bothered to More... | |
int | SetPos (int Where, akai_stream_whence_t Whence=akai_stream_start) |
Use this method and Read() if you don't want to load the sample into RAM, thus for disk streaming. More... | |
int | Read (void *pBuffer, uint SampleCount) |
Use this method and SetPos() if you don't want to load the sample into RAM, thus for disk streaming. More... | |
bool | LoadHeader () |
uint | GetOffset () |
uint | Acquire () |
uint | Release () |
Public Attributes | |
uint8_t | mMidiRootNote |
String | mName |
uint8_t | mActiveLoops |
uint8_t | mFirstActiveLoop |
uint8_t | mLoopMode |
int8_t | mTuneCents |
int8_t | mTuneSemitones |
uint32_t | mNumberOfSamples |
uint32_t | mStartMarker |
uint32_t | mEndMarker |
AkaiSampleLoop | mLoops [8] |
uint16_t | mSamplingFrequency |
int8_t | mLoopTuneOffset |
int16_t * | mpSamples |
Protected Member Functions | |
void | SetOffset (uint Offset) |
void | AkaiToAscii (char *buffer, int length) |
int | ReadFAT (DiskImage *pDisk, AkaiPartition *pPartition, int block) |
bool | ReadDirEntry (DiskImage *pDisk, AkaiPartition *pPartition, AkaiDirEntry &rEntry, int block, int pos) |
Friends | |
class | AkaiVolume |
|
inlineinherited |
Definition at line 182 of file Akai.h.
Referenced by AkaiDisk::GetPartition(), AkaiDisk::GetPartitionCount(), AkaiProgram::GetSample(), and AkaiPartition::ListVolumes().
|
protectedinherited |
Definition at line 1237 of file Akai.cpp.
Referenced by AkaiProgram::GetSample(), AkaiProgram::Load(), LoadHeader(), and AkaiDiskElement::ReadDirEntry().
AkaiDirEntry AkaiSample::GetDirEntry | ( | ) |
|
inlineinherited |
Definition at line 219 of file Akai.h.
Referenced by AkaiProgram::Load(), LoadHeader(), AkaiDiskElement::ReadDirEntry(), and AkaiDiskElement::ReadFAT().
bool AkaiSample::LoadHeader | ( | ) |
Definition at line 393 of file Akai.cpp.
References AKAI_BLOCK_SIZE, AKAI_SAMPLE_ID, AkaiDiskElement::AkaiDiskElement(), AkaiDiskElement::AkaiToAscii(), AkaiDiskElement::GetOffset(), AkaiVolume::GetParent(), DiskImage::GetPos(), mActiveLoops, mEndMarker, mFirstActiveLoop, mLoopMode, mLoops, mLoopTuneOffset, mMidiRootNote, mName, mNumberOfSamples, mSamplingFrequency, AkaiDirEntry::mStart, mStartMarker, mTuneCents, mTuneSemitones, DiskImage::Read(), DiskImage::ReadInt16(), DiskImage::ReadInt32(), DiskImage::ReadInt8(), and DiskImage::SetPos().
Referenced by LoadSampleData().
bool AkaiSample::LoadSampleData | ( | ) |
Load sample into RAM.
Definition at line 335 of file Akai.cpp.
References LoadHeader(), mNumberOfSamples, mpSamples, DiskImage::ReadInt16(), and DiskImage::SetPos().
int AkaiSample::Read | ( | void * | pBuffer, |
uint | SampleCount | ||
) |
Use this method and SetPos() if you don't want to load the sample into RAM, thus for disk streaming.
Definition at line 382 of file Akai.cpp.
References mNumberOfSamples, DiskImage::ReadInt16(), and DiskImage::SetPos().
Referenced by DiskImage::ReadInt16(), DiskImage::ReadInt32(), DiskImage::ReadInt8(), and DiskImage::WriteImage().
|
protectedinherited |
Definition at line 1189 of file Akai.cpp.
References AKAI_BLOCK_SIZE, AKAI_DIR_ENTRY_OFFSET, AKAI_DIR_ENTRY_SIZE, AKAI_FILE_ENTRY_SIZE, AKAI_ROOT_ENTRY_OFFSET, akai_stream_curpos, AkaiDiskElement::AkaiToAscii(), AkaiDiskElement::GetOffset(), AkaiDirEntry::mName, AkaiDirEntry::mSize, AkaiDirEntry::mStart, AkaiDirEntry::mType, DiskImage::Read(), AkaiDiskElement::ReadFAT(), DiskImage::ReadInt16(), and DiskImage::SetPos().
Referenced by AkaiProgram::GetSample(), and AkaiPartition::ListVolumes().
|
protectedinherited |
Definition at line 1180 of file Akai.cpp.
References AKAI_FAT_OFFSET, AkaiDiskElement::GetOffset(), DiskImage::Read(), and DiskImage::SetPos().
Referenced by AkaiProgram::GetSample(), and AkaiDiskElement::ReadDirEntry().
|
inlineinherited |
Definition at line 186 of file Akai.h.
Referenced by AkaiPartition::ListVolumes().
void AkaiSample::ReleaseSampleData | ( | ) |
|
inlineprotectedinherited |
Definition at line 225 of file Akai.h.
Referenced by AkaiDisk::GetPartitionCount().
int AkaiSample::SetPos | ( | int | Where, |
akai_stream_whence_t | Whence = akai_stream_start |
||
) |
Use this method and Read() if you don't want to load the sample into RAM, thus for disk streaming.
Definition at line 359 of file Akai.cpp.
References akai_stream_curpos, akai_stream_end, akai_stream_start, and mNumberOfSamples.
Referenced by DiskImage::WriteImage().
|
friend |
Definition at line 313 of file Akai.h.
Referenced by AkaiPartition::ListVolumes().
uint8_t AkaiSample::mActiveLoops |
Definition at line 267 of file Akai.h.
Referenced by LoadHeader().
uint32_t AkaiSample::mEndMarker |
Definition at line 285 of file Akai.h.
Referenced by LoadHeader().
uint8_t AkaiSample::mFirstActiveLoop |
Definition at line 269 of file Akai.h.
Referenced by LoadHeader().
uint8_t AkaiSample::mLoopMode |
Definition at line 273 of file Akai.h.
Referenced by AkaiProgram::GetSample(), and LoadHeader().
AkaiSampleLoop AkaiSample::mLoops[8] |
Definition at line 294 of file Akai.h.
Referenced by LoadHeader().
int8_t AkaiSample::mLoopTuneOffset |
Definition at line 299 of file Akai.h.
Referenced by LoadHeader().
uint8_t AkaiSample::mMidiRootNote |
Definition at line 262 of file Akai.h.
Referenced by LoadHeader().
String AkaiSample::mName |
Definition at line 264 of file Akai.h.
Referenced by AkaiProgram::GetSample(), AkaiProgram::Load(), and LoadHeader().
uint32_t AkaiSample::mNumberOfSamples |
Definition at line 281 of file Akai.h.
Referenced by LoadHeader(), LoadSampleData(), Read(), and SetPos().
int16_t* AkaiSample::mpSamples |
Definition at line 302 of file Akai.h.
Referenced by AkaiProgram::GetSample(), AkaiVolume::GetSample(), AkaiVolume::ListSamples(), LoadSampleData(), and ReleaseSampleData().
uint16_t AkaiSample::mSamplingFrequency |
Definition at line 297 of file Akai.h.
Referenced by LoadHeader().
uint32_t AkaiSample::mStartMarker |
Definition at line 283 of file Akai.h.
Referenced by LoadHeader().
int8_t AkaiSample::mTuneCents |
Definition at line 275 of file Akai.h.
Referenced by AkaiProgram::GetSample(), and LoadHeader().
int8_t AkaiSample::mTuneSemitones |
Definition at line 277 of file Akai.h.
Referenced by AkaiProgram::GetSample(), and LoadHeader().