328 |
dlsid_t* pDLSID; ///< Points to a <i>dlsid_t</i> structure if the file provided a DLS ID else is <i>NULL</i>. |
dlsid_t* pDLSID; ///< Points to a <i>dlsid_t</i> structure if the file provided a DLS ID else is <i>NULL</i>. |
329 |
|
|
330 |
Resource* GetParent() { return pParent; } |
Resource* GetParent() { return pParent; } |
331 |
|
const Resource* GetParent() const { return pParent; } |
332 |
virtual void UpdateChunks(); |
virtual void UpdateChunks(); |
333 |
void GenerateDLSID(); |
void GenerateDLSID(); |
334 |
virtual void CopyAssign(const Resource* orig); |
virtual void CopyAssign(const Resource* orig); |
385 |
|
|
386 |
void* LoadSampleData(); |
void* LoadSampleData(); |
387 |
void ReleaseSampleData(); |
void ReleaseSampleData(); |
388 |
unsigned long GetSize(); |
unsigned long GetSize() const; |
389 |
void Resize(int iNewSize); |
void Resize(int iNewSize); |
390 |
unsigned long SetPos(unsigned long SampleCount, RIFF::stream_whence_t Whence = RIFF::stream_start); |
unsigned long SetPos(unsigned long SampleCount, RIFF::stream_whence_t Whence = RIFF::stream_start); |
391 |
unsigned long Read(void* pBuffer, unsigned long SampleCount); |
unsigned long Read(void* pBuffer, unsigned long SampleCount); |
392 |
unsigned long Write(void* pBuffer, unsigned long SampleCount); |
unsigned long Write(void* pBuffer, unsigned long SampleCount); |
393 |
virtual void UpdateChunks(); |
virtual void UpdateChunks(); |
394 |
|
virtual void CopyAssign(const Sample* orig); |
395 |
protected: |
protected: |
396 |
RIFF::List* pWaveList; |
RIFF::List* pWaveList; |
397 |
RIFF::Chunk* pCkData; |
RIFF::Chunk* pCkData; |
400 |
|
|
401 |
Sample(File* pFile, RIFF::List* waveList, unsigned long WavePoolOffset); |
Sample(File* pFile, RIFF::List* waveList, unsigned long WavePoolOffset); |
402 |
virtual ~Sample(); |
virtual ~Sample(); |
403 |
|
void CopyAssignCore(const Sample* orig); |
404 |
friend class File; |
friend class File; |
405 |
friend class Region; // Region has to compare the wave pool offset to get its sample |
friend class Region; // Region has to compare the wave pool offset to get its sample |
406 |
}; |
}; |
481 |
File(); |
File(); |
482 |
File(RIFF::File* pRIFF); |
File(RIFF::File* pRIFF); |
483 |
String GetFileName(); |
String GetFileName(); |
484 |
|
void SetFileName(const String& name); |
485 |
Sample* GetFirstSample(); ///< Returns a pointer to the first <i>Sample</i> object of the file, <i>NULL</i> otherwise. |
Sample* GetFirstSample(); ///< Returns a pointer to the first <i>Sample</i> object of the file, <i>NULL</i> otherwise. |
486 |
Sample* GetNextSample(); ///< Returns a pointer to the next <i>Sample</i> object of the file, <i>NULL</i> otherwise. |
Sample* GetNextSample(); ///< Returns a pointer to the next <i>Sample</i> object of the file, <i>NULL</i> otherwise. |
487 |
Sample* AddSample(); |
Sample* AddSample(); |