tweak comment

This commit is contained in:
Alexandre Ratchov 2012-11-11 10:49:03 +01:00
parent c875716078
commit e43d03b3df
1 changed files with 6 additions and 5 deletions

View File

@ -971,12 +971,13 @@ dev_new(char *path, struct aparams *par,
} }
d = xmalloc(sizeof(struct dev)); d = xmalloc(sizeof(struct dev));
d->num = dev_sndnum++; d->num = dev_sndnum++;
/* /*
* XXX * XXX: below, we allocate a midi input buffer, since we don't
* we don't use the input buffer, since we don't receive * receive raw midi data, so no need to allocate a input
* raw midi data, so no need to allocate a input ibuf. * ibuf. Possibly set imsg & fill callbacks to NULL and
* Possibly set imsg & fill callbacks to NULL and use this * use this to in midi_new() to check if buffers need to be
* to in midi_new() to check if buffers need to be allocated * allocated
*/ */
d->midi = midi_new(&dev_midiops, d, MODE_MIDIIN | MODE_MIDIOUT); d->midi = midi_new(&dev_midiops, d, MODE_MIDIIN | MODE_MIDIOUT);
midi_tag(d->midi, d->num); midi_tag(d->midi, d->num);