diff options
author | Christian Glöckner <cgloeckner@freenet.de> | 2016-01-25 14:14:22 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-02-09 09:03:17 +0100 |
commit | 100e2d3bd46f64df730c8a375559680c577036ef (patch) | |
tree | 952e0ce0a1c5b6efb792c50617baa1484ba51e39 /drumgizmo/jackclient.h | |
parent | e5a773e80bee619987aacd40cc3205acfe146e9c (diff) |
applied clang-format
Diffstat (limited to 'drumgizmo/jackclient.h')
-rw-r--r-- | drumgizmo/jackclient.h | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/drumgizmo/jackclient.h b/drumgizmo/jackclient.h index ede6d9e..ebfc28d 100644 --- a/drumgizmo/jackclient.h +++ b/drumgizmo/jackclient.h @@ -35,41 +35,45 @@ class JackClient; -class JackProcess { - public: - virtual ~JackProcess(); - virtual void process(jack_nframes_t num_frames) = 0; +class JackProcess +{ +public: + virtual ~JackProcess(); + virtual void process(jack_nframes_t num_frames) = 0; }; // -------------------------------------------------------------------- // RAII-wrapper for jack_port_t -struct JackPort { - JackPort(JackClient& client, std::string const & name, const char * type, JackPortFlags flags); +struct JackPort +{ + JackPort(JackClient &client, std::string const &name, const char *type, + JackPortFlags flags); ~JackPort(); - - jack_client_t* const client; - jack_port_t* const port; + + jack_client_t *const client; + jack_port_t *const port; }; // -------------------------------------------------------------------- -class JackClient { +class JackClient +{ friend struct JackPort; - - public: - JackClient(); - ~JackClient(); - - void add(JackProcess& process); - void remove(JackProcess& process); - void activate(); - int process(jack_nframes_t num_frames); - std::size_t getBufferSize() const; - std::size_t getSampleRate() const; - - private: - jack_client_t* client; - std::set<JackProcess*> processes; - bool is_active; + +public: + JackClient(); + ~JackClient(); + + void add(JackProcess &process); + void remove(JackProcess &process); + void activate(); + int process(jack_nframes_t num_frames); + std::size_t getBufferSize() const; + std::size_t getSampleRate() const; + +private: + jack_client_t *client; + std::set<JackProcess *> processes; + bool is_active; }; |