mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-31 22:25:34 -04:00
I have enhanced the midi control of envy24control. 1) I have fixed midi feedback, where issuing a controller event resulted in the controller value beeing sent to the midi port again. 2) I have added midi controllers for the "mute" buttons, which can now be controller via midi. 3) and while rewriting the midi code to support the mute buttons several off-by-one errors have been fixed. From: Dirk Jagdmann <doj@cubic.org>
13 lines
293 B
C
13 lines
293 B
C
#ifndef MIDI__H
|
|
#define MIDI__H
|
|
|
|
#include <gdk/gdk.h>
|
|
|
|
int midi_init(char *appname, int channel);
|
|
int midi_close();
|
|
void midi_maxstreams(int);
|
|
int midi_controller(int c, int v);
|
|
void midi_process(gpointer data, gint source, GdkInputCondition condition);
|
|
int midi_button(int b, int v);
|
|
|
|
#endif
|