OutPlugin.h 571 B

12345678910111213141516171819202122232425262728
  1. #ifndef NULLSOFT_OUTPLUGINH
  2. #define NULLSOFT_OUTPLUGINH
  3. #include "AudioOut.h"
  4. class OutPlugin : public AudioOut
  5. {
  6. public:
  7. OutPlugin();
  8. void Init();
  9. void Quit();
  10. int CanWrite();
  11. int GetWrittenTime();
  12. int IsPlaying();
  13. int Open(int samplerate, int numchannels, int bitspersamp, int bufferlenms, int prebufferms);
  14. void Close();
  15. int Write(char *buf, int len);
  16. void Flush(int t);
  17. void SetVolume(int _volume);
  18. int Pause(int new_state);
  19. int GetOutputTime();
  20. void SetPan(int _pan);
  21. void About(HWND p);
  22. void Config(HWND w);
  23. };
  24. extern OutPlugin pluginOut;
  25. #endif