diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-10-12 02:10:33 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-10-12 02:10:33 +0200 |
commit | 77a5006d1b0963194d841eea71e44cba511c862f (patch) | |
tree | be0e9ba9a3013f92b3f3b6cc864021734e5824b6 /apps/mixer.c | |
parent | writing of task buf works now (diff) |
reading of seperate midi messages works now
Diffstat (limited to 'apps/mixer.c')
-rw-r--r-- | apps/mixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/mixer.c b/apps/mixer.c index 558e632..78a0d29 100644 --- a/apps/mixer.c +++ b/apps/mixer.c @@ -260,7 +260,7 @@ int mixer_handle_revents(mixer_t* x, struct pollfd *pfds, int npfds) assert(task); assert(task->buf_); - int ret = snd_rawmidi_write(x->output_, &(task->buf_[task->write_idx_]), task->len_); + int ret = snd_rawmidi_write(x->output_, &(task->buf_[task->write_idx_]), task->len_ - task->write_idx_); if(ret == -EAGAIN) return 0; if(ret < 0) { |