summaryrefslogtreecommitdiffstats
path: root/src/JackDriver.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-02-09 14:34:20 +0100
committerDavid Robillard <d@drobilla.net>2020-02-09 14:34:20 +0100
commitaf5ec4bdda21e9a2f76f22050216a0b1cbbed575 (patch)
treef93ddc033b70297abb472f7e28a06f9e936cf0ee /src/JackDriver.hpp
parentc321c02a6b9c67b4b106e36a77167ee279b9ef78 (diff)
downloadpatchage-af5ec4bdda21e9a2f76f22050216a0b1cbbed575.tar.gz
patchage-af5ec4bdda21e9a2f76f22050216a0b1cbbed575.tar.bz2
patchage-af5ec4bdda21e9a2f76f22050216a0b1cbbed575.zip
Format all code with clang-format
This configuration tries to get as close to the previous style as possible so the changes aren't too dramatic. It's still far from ideal and the code could use some adaptation, but this makes things much easier to work on.
Diffstat (limited to 'src/JackDriver.hpp')
-rw-r--r--src/JackDriver.hpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/JackDriver.hpp b/src/JackDriver.hpp
index 575c537..601b37e 100644
--- a/src/JackDriver.hpp
+++ b/src/JackDriver.hpp
@@ -55,14 +55,11 @@ public:
std::string& module_name,
std::string& port_name);
- PatchagePort* create_port_view(Patchage* patchage,
- const PortID& id);
+ PatchagePort* create_port_view(Patchage* patchage, const PortID& id);
- bool connect(PatchagePort* src,
- PatchagePort* dst);
+ bool connect(PatchagePort* src, PatchagePort* dst);
- bool disconnect(PatchagePort* src,
- PatchagePort* dst);
+ bool disconnect(PatchagePort* src, PatchagePort* dst);
uint32_t get_xruns() { return _xruns; }
void reset_xruns();
@@ -78,16 +75,19 @@ public:
void process_events(Patchage* app);
private:
- PatchagePort* create_port(
- PatchageModule& parent,
- jack_port_t* port,
- PortID id);
+ PatchagePort*
+ create_port(PatchageModule& parent, jack_port_t* port, PortID id);
void shutdown();
- static void jack_client_registration_cb(const char* name, int registered, void* me);
- static void jack_port_registration_cb(jack_port_id_t port_id, int registered, void* me);
- static void jack_port_connect_cb(jack_port_id_t src, jack_port_id_t dst, int connect, void* me);
+ static void
+ jack_client_registration_cb(const char* name, int registered, void* me);
+ static void
+ jack_port_registration_cb(jack_port_id_t port_id, int registered, void* me);
+ static void jack_port_connect_cb(jack_port_id_t src,
+ jack_port_id_t dst,
+ int connect,
+ void* me);
static int jack_xrun_cb(void* me);
static void jack_shutdown_cb(void* me);
@@ -102,7 +102,7 @@ private:
jack_nframes_t _buffer_size;
uint32_t _xruns;
float _xrun_delay;
- bool _is_activated :1;
+ bool _is_activated : 1;
};
#endif // PATCHAGE_JACKDRIVER_HPP