diff options
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) { |