1
0

SoundBlock.h 397 B

123456789101112131415161718192021
  1. #ifndef NULLSOFT_OUT_DS_SOUNDBLOCK_H
  2. #define NULLSOFT_OUT_DS_SOUNDBLOCK_H
  3. class SoundBlock
  4. {
  5. public:
  6. SoundBlock *next, *prev;
  7. SoundBlock();
  8. ~SoundBlock();
  9. void SetData(void *new_data, size_t new_size);
  10. void Advance(size_t d);
  11. const void *GetData();
  12. size_t GetDataSize();
  13. size_t Dump(void * out, size_t out_size);
  14. void Clear();
  15. private:
  16. void *data;
  17. size_t size, used, start;
  18. };
  19. #endif