version 1.21, 2009/08/17 15:07:49 |
version 1.22, 2009/08/17 16:17:46 |
|
|
struct abuf *rbuf = NULL, *wbuf = NULL; |
struct abuf *rbuf = NULL, *wbuf = NULL; |
|
|
if (mode & AMSG_MIDIOUT) { |
if (mode & AMSG_MIDIOUT) { |
rbuf = abuf_new(3125, &aparams_none); |
rbuf = abuf_new(MIDI_BUFSZ, &aparams_none); |
aproc_setout(f->pipe.file.rproc, rbuf); |
aproc_setout(f->pipe.file.rproc, rbuf); |
aproc_setin(thrubox, rbuf); |
aproc_setin(thrubox, rbuf); |
} |
} |
if (mode & AMSG_MIDIIN) { |
if (mode & AMSG_MIDIIN) { |
wbuf = abuf_new(3125, &aparams_none); |
wbuf = abuf_new(MIDI_BUFSZ, &aparams_none); |
aproc_setin(f->pipe.file.wproc, wbuf); |
aproc_setin(f->pipe.file.wproc, wbuf); |
aproc_setout(thrubox, wbuf); |
aproc_setout(thrubox, wbuf); |
if (mode & AMSG_MIDIOUT) { |
if (mode & AMSG_MIDIOUT) { |