aboutsummaryrefslogtreecommitdiff
path: root/midialsa.h
diff options
context:
space:
mode:
Diffstat (limited to 'midialsa.h')
-rw-r--r--midialsa.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/midialsa.h b/midialsa.h
index 4b485d5..e10c5f2 100644
--- a/midialsa.h
+++ b/midialsa.h
@@ -24,18 +24,23 @@
typedef struct _snd_rawmidi snd_rawmidi_t;
-class MIDIOutAlsa
+class MIDIAlsa
{
public:
- MIDIOutAlsa();
- ~MIDIOutAlsa();
+ MIDIAlsa();
+ ~MIDIAlsa();
int open(const char *dev);
int close();
+ ssize_t writeAvail();
ssize_t write(uint8_t *data, size_t len);
+ ssize_t readAvail();
+ ssize_t read(uint8_t *buf, size_t len);
+
private:
+ snd_rawmidi_t *_in;
snd_rawmidi_t *_out;
};