1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Chapter&#160;9.&#160;RawMIDI Interface</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Writing an ALSA Driver"><link rel="up" href="index.html" title="Writing an ALSA Driver"><link rel="prev" href="midi-interface-interrupt-handler.html" title="Interrupt Handler"><link rel="next" href="rawmidi-interface-constructor.html" title="Constructor"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter&#160;9.&#160;RawMIDI Interface</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="midi-interface-interrupt-handler.html">Prev</a>&#160;</td><th width="60%" align="center">&#160;</th><td width="20%" align="right">&#160;<a accesskey="n" href="rawmidi-interface-constructor.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="rawmidi-interface"></a>Chapter&#160;9.&#160;RawMIDI Interface</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="section"><a href="rawmidi-interface.html#rawmidi-interface-overview">Overview</a></span></dt><dt><span class="section"><a href="rawmidi-interface-constructor.html">Constructor</a></span></dt><dt><span class="section"><a href="rawmidi-interface-callbacks.html">Callbacks</a></span></dt><dd><dl><dt><span class="section"><a href="rawmidi-interface-callbacks.html#rawmidi-interface-op-open"><code class="function">open</code> callback</a></span></dt><dt><span class="section"><a href="rawmidi-interface-callbacks.html#rawmidi-interface-op-close"><code class="function">close</code> callback</a></span></dt><dt><span class="section"><a href="rawmidi-interface-callbacks.html#rawmidi-interface-op-trigger-out"><code class="function">trigger</code> callback for output
2      substreams</a></span></dt><dt><span class="section"><a href="rawmidi-interface-callbacks.html#rawmidi-interface-op-trigger-in"><code class="function">trigger</code> callback for input
3      substreams</a></span></dt><dt><span class="section"><a href="rawmidi-interface-callbacks.html#rawmidi-interface-op-drain"><code class="function">drain</code> callback</a></span></dt></dl></dd></dl></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="rawmidi-interface-overview"></a>Overview</h2></div></div></div><p>
4      The raw MIDI interface is used for hardware MIDI ports that can
5      be accessed as a byte stream.  It is not used for synthesizer
6      chips that do not directly understand MIDI.
7      </p><p>
8      ALSA handles file and buffer management.  All you have to do is
9      to write some code to move data between the buffer and the
10      hardware.
11      </p><p>
12      The rawmidi API is defined in
13      <code class="filename">&lt;sound/rawmidi.h&gt;</code>.
14      </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="midi-interface-interrupt-handler.html">Prev</a>&#160;</td><td width="20%" align="center">&#160;</td><td width="40%" align="right">&#160;<a accesskey="n" href="rawmidi-interface-constructor.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Interrupt Handler&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Constructor</td></tr></table></div></body></html>
15