/[svn]/libgig/trunk/src/DLS.h
ViewVC logotype

Diff of /libgig/trunk/src/DLS.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2394 by schoenebeck, Mon Jan 7 23:23:58 2013 UTC revision 2482 by schoenebeck, Mon Nov 25 02:22:38 2013 UTC
# Line 328  namespace DLS { Line 328  namespace DLS {
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);
# Line 384  namespace DLS { Line 385  namespace DLS {
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;
# Line 398  namespace DLS { Line 400  namespace DLS {
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      };      };
# Line 478  namespace DLS { Line 481  namespace DLS {
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();

Legend:
Removed from v.2394  
changed lines
  Added in v.2482

  ViewVC Help
Powered by ViewVC