/* * VIRTUAL RAW MIDI DEVICE CARDS * * This dummy card contains up to 4 virtual rawmidi devices. * They are not real rawmidi devices but just associated with sequencer * clients, so that any input/output sources can be connected as a raw * MIDI device arbitrary. * Also, multiple access is allowed to a single rawmidi device. * * Typical usage is like following: * - Load snd-virmidi module. * # modprobe snd-virmidi index=2 * Then, sequencer clients 72:0 to 75:0 will be created, which are * mapped from /dev/snd/midiC1D0 to /dev/snd/midiC1D3, respectively. * * - Connect input/output via aconnect. * % aconnect 64:0 72:0 # keyboard input redirection 64:0 -> 72:0 * % aconnect 72:0 65:0 # output device redirection 72:0 -> 65:0 * * - Run application using a midi device (eg. /dev/snd/midiC1D0)
*/
if (midi_devs[dev] > MAX_MIDI_DEVICES) {
dev_warn(&devptr->dev, "too much midi devices for virmidi %d: force to use %d\n",
dev, MAX_MIDI_DEVICES);
midi_devs[dev] = MAX_MIDI_DEVICES;
} for (idx = 0; idx < midi_devs[dev]; idx++) { struct snd_rawmidi *rmidi;
err = snd_virmidi_new(card, idx, &rmidi); if (err < 0) return err;
vmidi->midi[idx] = rmidi;
strscpy(rmidi->name, "Virtual Raw MIDI");
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.