summaryrefslogtreecommitdiff
path: root/apps/mixer.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-12 02:10:33 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-12 02:10:33 +0200
commit77a5006d1b0963194d841eea71e44cba511c862f (patch)
treebe0e9ba9a3013f92b3f3b6cc864021734e5824b6 /apps/mixer.c
parentwriting of task buf works now (diff)
reading of seperate midi messages works now
Diffstat (limited to 'apps/mixer.c')
-rw-r--r--apps/mixer.c2
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) {