Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
905B

  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. JackMultiEngine.h - Channeled Audio output JACK
  4. Copyright (C) 2012-2012 Mark McCurry
  5. Author: Mark McCurry
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or (at your option) any later version.
  10. */
  11. #ifndef JACK_MULTI_ENGINE
  12. #define JACK_MULTI_ENGINE
  13. #include "AudioOut.h"
  14. class JackMultiEngine:public AudioOut
  15. {
  16. public:
  17. JackMultiEngine(const SYNTH_T &synth);
  18. ~JackMultiEngine(void);
  19. void setAudioEn(bool nval);
  20. bool getAudioEn() const;
  21. bool Start(void);
  22. void Stop(void);
  23. private:
  24. static int _processCallback(unsigned nframes, void *arg);
  25. int processAudio(unsigned nframes);
  26. struct jack_multi *impl;
  27. };
  28. #endif