zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

JackMultiEngine.h (925B)


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