rtaudiodriver.h 803 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __MAXMOD_RTAUDIODRIVER_H__
  2. #define __MAXMOD_RTAUDIODRIVER_H__
  3. #include <maxmod2.mod/maxmod2.mod/code/maxmod2.h>
  4. #include <rtaudio/RtAudio.h>
  5. class RtAudioDriver : public IMaxModAudioDriver {
  6. public:
  7. //we want a pointer
  8. RtAudio *audio;
  9. // RtAudio dac;
  10. RtAudio::StreamParameters parameters;
  11. RtAudio::StreamOptions options;
  12. unsigned int bufferFrames;
  13. RtAudioFormat format;
  14. int Terminate;
  15. int Active;
  16. RtAudioDriver(int api, int showWarnings);
  17. virtual ~RtAudioDriver();
  18. virtual int SetAPI(int api);
  19. virtual int Startup();
  20. virtual int Shutdown();
  21. virtual IMaxModSound* CreateSound( int samplerate, int channels, int bits, int flags, void* data, int size );
  22. // virtual IMaxModChannel* AllocChannel();
  23. };
  24. #endif // __MAXMOD_RTAUDIODRIVER_H__