Lines Matching defs:buf
1311 unsigned char buf[128];
1320 if (n_pending > (int)sizeof (buf))
1321 n_pending = sizeof (buf);
1323 to_write = snd_rawmidi_transmit(hmidi->output, buf, n_pending);
1326 snd_hdsp_midi_write_byte (hmidi->hdsp, hmidi->id, buf[i]);
1337 unsigned char buf[128]; /* this buffer is designed to match the MIDI input FIFO size */
1346 if (n_pending > (int)sizeof (buf))
1347 n_pending = sizeof (buf);
1349 buf[i] = snd_hdsp_midi_read_byte (hmidi->hdsp, hmidi->id);
1351 snd_rawmidi_receive (hmidi->input, buf, n_pending);
1504 char buf[40];
1515 snprintf(buf, sizeof(buf), "%s MIDI %d", card->shortname, id + 1);
1516 if (snd_rawmidi_new (card, buf, id, 1, 1, &hdsp->midi[id].rmidi) < 0)