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.

JackMultiEngine.h 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 modify
  7. it under the terms of version 2 of the GNU General Public License
  8. as published by the Free Software Foundation.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License (version 2 or later) for more details.
  13. You should have received a copy of the GNU General Public License (version 2)
  14. along with this program; if not, write to the Free Software Foundation,
  15. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. #ifndef JACK_MULTI_ENGINE
  18. #define JACK_MULTI_ENGINE
  19. #include "AudioOut.h"
  20. class JackMultiEngine:public AudioOut
  21. {
  22. public:
  23. JackMultiEngine(const SYNTH_T &synth);
  24. ~JackMultiEngine(void);
  25. void setAudioEn(bool nval);
  26. bool getAudioEn() const;
  27. bool Start(void);
  28. void Stop(void);
  29. private:
  30. static int _processCallback(unsigned nframes, void *arg);
  31. int processAudio(unsigned nframes);
  32. struct jack_multi *impl;
  33. };
  34. #endif