174 |
END_OPER |
END_OPER |
175 |
} SFGeneratorType; |
} SFGeneratorType; |
176 |
|
|
177 |
|
class File; |
178 |
|
class Instrument; |
179 |
|
|
180 |
class Modulator { |
class Modulator { |
181 |
public: |
public: |
182 |
|
|
298 |
|
|
299 |
String Name; |
String Name; |
300 |
|
|
301 |
Sample(RIFF::Chunk* ck, RIFF::Chunk* pCkSmpl, RIFF::Chunk* pCkSm24); |
Sample(File* file, RIFF::Chunk* ck, RIFF::Chunk* pCkSmpl, RIFF::Chunk* pCkSm24); |
302 |
|
|
303 |
String GetName() { return Name; } |
String GetName() { return Name; } |
304 |
int GetChannelCount(); |
int GetChannelCount(); |
306 |
int GetFrameSize(); |
int GetFrameSize(); |
307 |
bool HasLoops(); |
bool HasLoops(); |
308 |
bool IsUnpitched() { return OriginalPitch == 255; } |
bool IsUnpitched() { return OriginalPitch == 255; } |
309 |
|
File* GetFile() { return pFile; } |
310 |
|
|
311 |
buffer_t LoadSampleData(); |
buffer_t LoadSampleData(); |
312 |
buffer_t LoadSampleData(unsigned long SampleCount); |
buffer_t LoadSampleData(unsigned long SampleCount); |
345 |
* sample header index of the associated right or left stereo |
* sample header index of the associated right or left stereo |
346 |
* sample respectively; zero otherwise. */ |
* sample respectively; zero otherwise. */ |
347 |
uint16_t SampleType; |
uint16_t SampleType; |
|
}; |
|
348 |
|
|
349 |
class File; |
File* pFile; |
350 |
class Instrument; |
}; |
351 |
|
|
352 |
/** |
/** |
353 |
* Instrument zone |
* Instrument zone |
536 |
Sample* GetSample(int idx); |
Sample* GetSample(int idx); |
537 |
void DeleteSample(Sample* pSample); |
void DeleteSample(Sample* pSample); |
538 |
bool HasSamples(); |
bool HasSamples(); |
539 |
|
RIFF::File* GetRiffFile(); |
540 |
|
|
541 |
friend class Region; |
friend class Region; |
542 |
friend class Instrument; |
friend class Instrument; |