home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / gamesystem / includes / gs_sample.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-07  |  711 b   |  41 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    gsCSample
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    12/03/00
  8. //
  9. // Base:    gsCObject
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #ifndef _INCLUDE_GS_SAMPLE_H
  16. #define _INCLUDE_GS_SAMPLE_H
  17.  
  18. #include "bass.h"
  19.  
  20. //-------------------------------------------------------------
  21.  
  22. class gsCSample : gsCObject
  23. {
  24.     private:
  25.         HSAMPLE m_handle;
  26.         gsUBYTE *m_buffer;
  27.         gsUDWORD m_size;
  28.  
  29.     public:
  30.         gsCSample();
  31.         ~gsCSample();
  32.  
  33.         bool load(const char *filename);
  34.  
  35.         HSAMPLE getHandle();
  36. };
  37.  
  38. //-------------------------------------------------------------
  39.  
  40. #endif
  41.