From d3554736c13531898fb720b34772a595620e661a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Mon, 25 Jan 2016 15:51:53 +0100 Subject: reformatting fix --- drumgizmo/input/jackmidi.cc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'drumgizmo/input/jackmidi.cc') diff --git a/drumgizmo/input/jackmidi.cc b/drumgizmo/input/jackmidi.cc index 5ae6add..386adac 100644 --- a/drumgizmo/input/jackmidi.cc +++ b/drumgizmo/input/jackmidi.cc @@ -30,11 +30,18 @@ #include "cpp11fix.h" // required for c++11 #include "jackmidi.h" -int const NOTE_ON = 0x90; +static int const NOTE_ON = 0x90; JackMidiInputEngine::JackMidiInputEngine(JackClient &client) - : AudioInputEngine{}, JackProcess{}, client(client), port{nullptr}, - midimap{}, midi_mapper{}, pos{0u}, list{nullptr}, listsize{0u} + : AudioInputEngine{} + , JackProcess{} + , client(client) + , port{nullptr} + , midimap{} + , midi_mapper{} + , pos{0u} + , list{nullptr} + , listsize{0u} { client.add(*this); } @@ -96,8 +103,7 @@ event_t *JackMidiInputEngine::run(size_t pos, size_t len, size_t *nevents) { *nevents = listsize; event_t *l = list; - printf("Owning raw pointer at drumgizmo/input/jackmidi.cc - GET RID OF " - "THEM!\n"); + // todo: get rid of malloc list = (event_t *)malloc(sizeof(event_t) * 1000); listsize = 0; return l; -- cgit v1.2.3