Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > 90467ea6a387df728f7218a11e972208 > files > 9739

kdelibs-apidocs-3.5.6-3.amd64.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>libkmid: DeviceManager Class Reference (libkmid)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">libkmid</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.4.4 -->
<h1>DeviceManager Class Reference</h1><!-- doxytag: class="DeviceManager" --><code>#include &lt;<a class="el" href="deviceman_8h-source.html">deviceman.h</a>&gt;</code>
<p>
<a href="classDeviceManager-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
MIDI Device Manager class .Manages all MIDI devices and redirects MIDI events to each one as configured. 
<p>
This class is the one you should use to send MIDI events to any device, as it creates and manages the *Out classes.<p>
This class is usually used by creating a DeviceManager object, then call <a class="el" href="classDeviceManager.html#a10">openDev()</a> and <a class="el" href="classDeviceManager.html#a12">initDev()</a> . Then, use numberOfMidiPorts(), numberOfSynthDevices(), <a class="el" href="classDeviceManager.html#a37">name()</a> and <a class="el" href="classDeviceManager.html#a38">type()</a> to choose which device to play MIDI events to and then use <a class="el" href="classDeviceManager.html#a29">defaultDevice()</a> to set the MIDI device to play.<p>
<dl compact><dt><b>Version:</b></dt><dd>0.9.5 17/01/2000 </dd></dl>
<dl compact><dt><b>Author:</b></dt><dd>Antonio Larrosa Jimenez &lt;<a href="mailto:larrosa@kde.org">larrosa@kde.org</a>&gt;</dd></dl>

<p>

<p>
Definition at line <a class="el" href="deviceman_8h-source.html#l00047">47</a> of file <a class="el" href="deviceman_8h-source.html">deviceman.h</a>.<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a0">DeviceManager</a> (int def=-1)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a1">~DeviceManager</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a2">initManager</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a3">checkInit</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classMidiOut.html">MidiOut</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a4">chntodev</a> (int chn)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classMidiOut.html">MidiOut</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a5">deviceForChannel</a> (int chn)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a6">deviceNumberForChannel</a> (int chn)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a7">setDeviceNumberForChannel</a> (int chn, int dev)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a8">ok</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a9">usingAlsa</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a10">openDev</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a11">closeDev</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a12">initDev</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a13">noteOn</a> (uchar chn, uchar note, uchar vel)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a14">noteOff</a> (uchar chn, uchar note, uchar vel)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a15">keyPressure</a> (uchar chn, uchar note, uchar vel)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a16">chnPatchChange</a> (uchar chn, uchar patch)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a17">chnPressure</a> (uchar chn, uchar vel)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a18">chnPitchBender</a> (uchar chn, uchar lsb, uchar msb)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a19">chnController</a> (uchar chn, uchar ctl, uchar v)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a20">sysEx</a> (uchar *data, ulong size)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a21">wait</a> (double ms)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a22">tmrSetTempo</a> (int v)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a23">tmrStart</a> (long int tpcn)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a24">tmrStop</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a25">tmrContinue</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a26">allNotesOff</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a27">sync</a> (bool f=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a28">setVolumePercentage</a> (int i)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a29">defaultDevice</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a30">setDefaultDevice</a> (int i)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a31">setPatchesToUse</a> (int *patchesused)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a32">midiMapFilename</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a33">setMidiMap</a> (<a class="el" href="classMidiMapper.html">MidiMapper</a> *map)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a34">rate</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a35">midiPorts</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a36">synthDevices</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a37">name</a> (int i)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#a38">type</a> (int i)</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b0"></a><!-- doxytag: member="DeviceManager::seqbuf_dump" ref="b0" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#b0">seqbuf_dump</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b1"></a><!-- doxytag: member="DeviceManager::seqbuf_clean" ref="b1" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#b1">seqbuf_clean</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b2"></a><!-- doxytag: member="DeviceManager::checkAlsa" ref="b2" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#b2">checkAlsa</a> (void)</td></tr>

<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p0"></a><!-- doxytag: member="DeviceManager::device" ref="p0" args="" -->
<a class="el" href="classMidiOut.html">MidiOut</a> **&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p0">device</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p1"></a><!-- doxytag: member="DeviceManager::midiinfo" ref="p1" args="" -->
midi_info *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p1">midiinfo</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p2"></a><!-- doxytag: member="DeviceManager::synthinfo" ref="p2" args="" -->
synth_info *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p2">synthinfo</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p3"></a><!-- doxytag: member="DeviceManager::chn2dev" ref="p3" args="[16]" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p3">chn2dev</a> [16]</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p4"></a><!-- doxytag: member="DeviceManager::n_synths" ref="p4" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p4">n_synths</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p5"></a><!-- doxytag: member="DeviceManager::n_midi" ref="p5" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p5">n_midi</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p6"></a><!-- doxytag: member="DeviceManager::n_total" ref="p6" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p6">n_total</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p7"></a><!-- doxytag: member="DeviceManager::m_rate" ref="p7" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p7">m_rate</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p8"></a><!-- doxytag: member="DeviceManager::convertrate" ref="p8" args="" -->
double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p8">convertrate</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p9"></a><!-- doxytag: member="DeviceManager::timerstarted" ref="p9" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p9">timerstarted</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p10"></a><!-- doxytag: member="DeviceManager::lastwaittime" ref="p10" args="" -->
double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p10">lastwaittime</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p11"></a><!-- doxytag: member="DeviceManager::mapper_tmp" ref="p11" args="" -->
<a class="el" href="classMidiMapper.html">MidiMapper</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p11">mapper_tmp</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p12"></a><!-- doxytag: member="DeviceManager::initialized" ref="p12" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p12">initialized</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p13"></a><!-- doxytag: member="DeviceManager::seqfd" ref="p13" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p13">seqfd</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p14"></a><!-- doxytag: member="DeviceManager::default_dev" ref="p14" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p14">default_dev</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p15"></a><!-- doxytag: member="DeviceManager::_ok" ref="p15" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p15">_ok</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p16"></a><!-- doxytag: member="DeviceManager::alsa" ref="p16" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDeviceManager.html#p16">alsa</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0"></a><!-- doxytag: member="DeviceManager::DeviceManager" ref="a0" args="(int def=-1)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">DeviceManager::DeviceManager           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>def</em> = <code>-1</code>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor. 
<p>
It just initializes internal variables, before playing any music, you should call <a class="el" href="classDeviceManager.html#a2">initManager()</a>, <a class="el" href="classDeviceManager.html#a33">setMidiMap()</a> (optional), <a class="el" href="classDeviceManager.html#a10">openDev()</a>, <a class="el" href="classDeviceManager.html#a12">initDev()</a>, <a class="el" href="classDeviceManager.html#a31">setPatchesToUse()</a> (not required, unless you're playing to a GUS device, which must load the patches), <a class="el" href="classDeviceManager.html#a23">tmrStart()</a>, and finally, play the music.
<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00106">106</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="DeviceManager::~DeviceManager" ref="a1" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">DeviceManager::~DeviceManager           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Destructor. 
<p>
It closes the device (calling <a class="el" href="classDeviceManager.html#a11">closeDev()</a> ) if it wasn't closed before.
<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00153">153</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a26"></a><!-- doxytag: member="DeviceManager::allNotesOff" ref="a26" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::allNotesOff           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sends an all notes off event. 
<p>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00826">826</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a3"></a><!-- doxytag: member="DeviceManager::checkInit" ref="a3" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::checkInit           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Checks if the device manager has been initialized (with <code>initManager</code>), and in case it wasn't, initializes it. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>0 if it was (or has just been) correctly initialized, and -1 if there was an error.</dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00176">176</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a19"></a><!-- doxytag: member="DeviceManager::chnController" ref="a19" args="(uchar chn, uchar ctl, uchar v)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::chnController           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>chn</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>ctl</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>v</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sends a Controller event to a MIDI channel. 
<p>
This can be used for example to change the volume, set a XG patch, etc. Look for any General Midi resource page on the net for more information about the available controller events.<p>
For example, to set the tremolo value to a maximum on the MIDI channel number one, you should pass 1 to <code>chn</code>, 1 to <code>ctl</code> and 127 to <code>v</code>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>chn</em>&nbsp;</td><td>the MIDI channel (0 to 15) to send the event to. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>ctl</em>&nbsp;</td><td>the controller (0 to 15) to send. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>v</em>&nbsp;</td><td>the value (data) of the controller.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00526">526</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a16"></a><!-- doxytag: member="DeviceManager::chnPatchChange" ref="a16" args="(uchar chn, uchar patch)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::chnPatchChange           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>chn</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>patch</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Changes the patch (instrument) on a MIDI channel. 
<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a31">setPatchesToUse()</a></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>chn</em>&nbsp;</td><td>the MIDI channel (0 to 15) . </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>patch</em>&nbsp;</td><td>the General Midi patch (0 to 127) to use on the channel chn.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00511">511</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a18"></a><!-- doxytag: member="DeviceManager::chnPitchBender" ref="a18" args="(uchar chn, uchar lsb, uchar msb)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::chnPitchBender           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>chn</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>lsb</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>msb</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Changes the Pitch Bender value on a MIDI channel. 
<p>
This bends the tone of each note played on this channel.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>chn</em>&nbsp;</td><td>the MIDI channel (0 to 15) to use. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>lsb</em>&nbsp;</td><td>and <code>msb</code> the less significant byte and the most significant byte (0 to 127 each) of the number by which notes will be bend. a 0x4000 value means not to bend. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>msb</em>&nbsp;</td><td>the most significant byte</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00521">521</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a17"></a><!-- doxytag: member="DeviceManager::chnPressure" ref="a17" args="(uchar chn, uchar vel)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::chnPressure           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>chn</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>vel</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Changes the Pressure (Aftertouch) on a MIDI channel. 
<p>
Keep in mind that some synthesizers don't like this events, and it's better not to send it.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>chn</em>&nbsp;</td><td>the MIDI channel (0 to 15) to change. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vel</em>&nbsp;</td><td>the velocity (0 to 127) to use on the channel chn.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00516">516</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="DeviceManager::chntodev" ref="a4" args="(int chn)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classMidiOut.html">MidiOut</a>* DeviceManager::chntodev           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>chn</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>Please use <a class="el" href="classDeviceManager.html#a5">deviceForChannel()</a> instead.</dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8h-source.html#l00206">206</a> of file <a class="el" href="deviceman_8h-source.html">deviceman.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a11"></a><!-- doxytag: member="DeviceManager::closeDev" ref="a11" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::closeDev           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Closes the devices, and /dev/sequencer. 
<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a10">openDev()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00449">449</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a29"></a><!-- doxytag: member="DeviceManager::defaultDevice" ref="a29" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::defaultDevice           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the device to which the MIDI events will be sent. 
<p>
Returns -1 if there's no available device.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a30">setDefaultDevice()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00766">766</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a5"></a><!-- doxytag: member="DeviceManager::deviceForChannel" ref="a5" args="(int chn)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"><a class="el" href="classMidiOut.html">MidiOut</a>* DeviceManager::deviceForChannel           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>chn</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
It's possible to send different MIDI channels to different MIDI devices, so that you can for example send channel 1 to an external synthesizer, channel 2 to a FM device and channel 10 to an AWE synth. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the device to which MIDI events goind to channel <code>chn</code> should be sent.</dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8h-source.html#l00217">217</a> of file <a class="el" href="deviceman_8h-source.html">deviceman.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a6"></a><!-- doxytag: member="DeviceManager::deviceNumberForChannel" ref="a6" args="(int chn)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::deviceNumberForChannel           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>chn</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the device number associated with a given channel. 
<p>

<p>
Definition at line <a class="el" href="deviceman_8h-source.html#l00223">223</a> of file <a class="el" href="deviceman_8h-source.html">deviceman.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a12"></a><!-- doxytag: member="DeviceManager::initDev" ref="a12" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::initDev           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Calls <a class="el" href="classMidiOut.html#a4">MidiOut::initDev()</a> in turn in each of the available devices. 
<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classMidiOut.html#a4">MidiOut::initDev()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00482">482</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="DeviceManager::initManager" ref="a2" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::initManager           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Initializes the MIDI Device Manager object. 
<p>
The /dev/sequencer and/or /dev/snd/seq files are opened, available devices are analyzed and *Out objects are created. Then, the device files are closed.<p>
<dl compact><dt><b>Returns:</b></dt><dd>0 if everything was OK, or -1 if there was an error and it couldn't be initialized (for example, because it couldn't open the /dev/sequencer file)</dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00203">203</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a15"></a><!-- doxytag: member="DeviceManager::keyPressure" ref="a15" args="(uchar chn, uchar note, uchar vel)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::keyPressure           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>chn</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>note</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>vel</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sends a Key Pressure (or Aftertouch) MIDI event. 
<p>
This event changes the pressure over a key after this key has been played.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>chn</em>&nbsp;</td><td>the MIDI channel (0 to 15) where the note is being played. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>note</em>&nbsp;</td><td>the key of the note (0 to 127). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vel</em>&nbsp;</td><td>the new velocity (or pressure) of the note (0 to 127).</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00506">506</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a32"></a><!-- doxytag: member="DeviceManager::midiMapFilename" ref="a32" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">const char * DeviceManager::midiMapFilename           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the filename where the Midi Mapper was loaded from, or "" if no MIDI Mapper is in use. 
<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a33">setMidiMap()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00778">778</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a35"></a><!-- doxytag: member="DeviceManager::midiPorts" ref="a35" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::midiPorts           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the number of MIDI ports available on the system. 
<p>
It's common that users have MIDI ports available, but there are no external synthesizers connected to these ports, so sending MIDI events to these ports will not produce any music in this case.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a36">synthDevices()</a> <p>
<a class="el" href="classDeviceManager.html#a30">setDefaultDevice()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8h-source.html#l00504">504</a> of file <a class="el" href="deviceman_8h-source.html">deviceman.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a37"></a><!-- doxytag: member="DeviceManager::name" ref="a37" args="(int i)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">const char * DeviceManager::name           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>i</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the name of the <code>i-th</code> device . 
<p>
In case the DeviceManager wasn't yet initialized ( see <a class="el" href="classDeviceManager.html#a3">checkInit()</a> ), the return value is NULL, and in case the parameter has a value out of the valid range ( 0 to <a class="el" href="classDeviceManager.html#a35">midiPorts()</a> + <a class="el" href="classDeviceManager.html#a36">synthDevices()</a> ) it returns an empty string.
<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00718">718</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a14"></a><!-- doxytag: member="DeviceManager::noteOff" ref="a14" args="(uchar chn, uchar note, uchar vel)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::noteOff           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>chn</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>note</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>vel</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sends a Note Off MIDI event. 
<p>
This is equivalent to send a Note On event with a vel value of 0.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>chn</em>&nbsp;</td><td>the MIDI channel (0 to 15) to play the note on. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>note</em>&nbsp;</td><td>the key of the note to play (0 to 127). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vel</em>&nbsp;</td><td>the velocity of the note (0 to 127).</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a13">noteOn()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00501">501</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a13"></a><!-- doxytag: member="DeviceManager::noteOn" ref="a13" args="(uchar chn, uchar note, uchar vel)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::noteOn           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>chn</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>note</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uchar&nbsp;</td>
          <td class="mdname" nowrap> <em>vel</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sends a Note On MIDI event. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>chn</em>&nbsp;</td><td>the MIDI channel (0 to 15) to play the note on. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>note</em>&nbsp;</td><td>the key of the note to play (0 to 127). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>vel</em>&nbsp;</td><td>the velocity of the note (0 to 127).</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a14">noteOff()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00496">496</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a8"></a><!-- doxytag: member="DeviceManager::ok" ref="a8" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::ok           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Returns:</b></dt><dd>0 if there was a problem and 1 if everything was OK. Note that the return value is changed after you check it, so you can only check it once.</dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00169">169</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a10"></a><!-- doxytag: member="DeviceManager::openDev" ref="a10" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::openDev           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Open the devices. 
<p>
It first initializes the manager it that wasn't done yet (you should do it yourself, to be able to choose the MIDI output device, as it will be set to an external synth by default, if available).<p>
Then /dev/sequencer is opened and the MIDI devices are opened (calling <a class="el" href="classMidiOut.html#a2">MidiOut::openDev()</a> ). <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a8">ok()</a> to check if there was any problem <p>
<a class="el" href="classDeviceManager.html#a11">closeDev()</a> <p>
<a class="el" href="classDeviceManager.html#a12">initDev()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00398">398</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a34"></a><!-- doxytag: member="DeviceManager::rate" ref="a34" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::rate           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the SNDCTL_SEQ_CTRLRATE ioctl value. 
<p>

<p>
Definition at line <a class="el" href="deviceman_8h-source.html#l00493">493</a> of file <a class="el" href="deviceman_8h-source.html">deviceman.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a30"></a><!-- doxytag: member="DeviceManager::setDefaultDevice" ref="a30" args="(int i)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::setDefaultDevice           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>i</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the device to send the MIDI events to. 
<p>
By using <a class="el" href="classDeviceManager.html#a35">midiPorts()</a>, <a class="el" href="classDeviceManager.html#a36">synthDevices()</a>, <a class="el" href="classDeviceManager.html#a37">name()</a> and <a class="el" href="classDeviceManager.html#a38">type()</a>, you should choose which device to use (note that they are numbered with midi ports being first and synth devices next)<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a29">defaultDevice()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00771">771</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a7"></a><!-- doxytag: member="DeviceManager::setDeviceNumberForChannel" ref="a7" args="(int chn, int dev)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::setDeviceNumberForChannel           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname" nowrap> <em>chn</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>dev</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the device number associated with a given channel. 
<p>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00821">821</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a33"></a><!-- doxytag: member="DeviceManager::setMidiMap" ref="a33" args="(MidiMapper *map)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::setMidiMap           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classMidiMapper.html">MidiMapper</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>map</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets a <a class="el" href="classMidiMapper.html">MidiMapper</a> object to use. 
<p>
This object should already have loaded the configuration. See the description of <a class="el" href="classMidiMapper.html">MidiMapper</a> for more information.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classMidiMapper.html#a0">MidiMapper::MidiMapper()</a> <p>
<a class="el" href="classDeviceManager.html#a32">midiMapFilename()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00786">786</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a31"></a><!-- doxytag: member="DeviceManager::setPatchesToUse" ref="a31" args="(int *patchesused)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::setPatchesToUse           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>patchesused</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Loads the patches you're going to use . 
<p>
This has effect only for GUS cards, although, if you use this function when <a class="el" href="classDeviceManager.html#a29">defaultDevice()</a> is not a GUS device, it will be ignored.<p>
The parameter is an int [256] array, which contain the following:<p>
The first 0..127 integers, are the number of times each General MIDI patch will be used, and -1 when the corresponding patch won't be used.<p>
The 128..255 integers are the number of times each drum voice (each note on the drum channel) will be used, and -1 when the corresponding percussion won't be used.<p>
This is done this way so that if the user has very little memory on his GUS card, and not all patches will be loaded, they are at least reordered, so that it first loads the one you're going to use most.<p>
In case you don't worry about such users, or you don't know "a priori" the number of notes you're going to play, you can just use 1 for each patch you want to load and -1 in the rest.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classGUSOut.html#a13">GUSOut::setPatchesToUse()</a> <p>
<a class="el" href="classGUSOut.html#a14">GUSOut::loadPatch()</a></dd></dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 if ok, and -1 if there wasn't enough memory to load the patches in the card's memory.</dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00796">796</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a28"></a><!-- doxytag: member="DeviceManager::setVolumePercentage" ref="a28" args="(int i)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::setVolumePercentage           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>i</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Changes the "master" volume of the played events by altering next volume controller events. 
<p>
The parameter <code>i</code> should be in the range of 0 (nothing is heard) to 150 (music is played at a 150% of the original volume).<p>
Keep in mind that as most MIDI files already play music at near the maximum volume, an <code>i</code> value greater than 100 is very probably ignored most of the times.
<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00810">810</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a27"></a><!-- doxytag: member="DeviceManager::sync" ref="a27" args="(bool f=0)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::sync           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>f</em> = <code>0</code>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Synchronizes with the MIDI buffer. 
<p>
Midi events are put into a buffer, along with timer delays (see <a class="el" href="classDeviceManager.html#a21">wait()</a> ). sync returns when the buffer is empty.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>f</em>&nbsp;</td><td>if false, it syncronizes by waiting for the buffer to be sent. If true, it forces the synchronization by clearing the buffer inmediately. The "force" method is, of course, not recommended, except in rare situations.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00632">632</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a36"></a><!-- doxytag: member="DeviceManager::synthDevices" ref="a36" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::synthDevices           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the number of internal synthesizers available on the system. 
<p>
Some of these devices will need special configuration, for example, to load sound patches.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a35">midiPorts()</a> <p>
<a class="el" href="classDeviceManager.html#a30">setDefaultDevice()</a> <p>
<a class="el" href="classDeviceManager.html#a31">setPatchesToUse()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8h-source.html#l00515">515</a> of file <a class="el" href="deviceman_8h-source.html">deviceman.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a20"></a><!-- doxytag: member="DeviceManager::sysEx" ref="a20" args="(uchar *data, ulong size)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::sysEx           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uchar *&nbsp;</td>
          <td class="mdname" nowrap> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>ulong&nbsp;</td>
          <td class="mdname" nowrap> <em>size</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sends a SYStem EXclusive message to the default MIDI device (usually, external MIDI synths, as most internal synths do not support sysex messages). 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>the array of bytes that comform the system exclusive message. Without the initial 0xF0 char, and including the final 0xF7 char (end of exclusive message) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>the size in bytes of the data to send</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a30">setDefaultDevice()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00531">531</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a25"></a><!-- doxytag: member="DeviceManager::tmrContinue" ref="a25" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::tmrContinue           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Continue the stopped timer . 
<p>
It is the same than starting a new timer, but without resetting it.
<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00612">612</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a22"></a><!-- doxytag: member="DeviceManager::tmrSetTempo" ref="a22" args="(int v)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::tmrSetTempo           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>v</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the tempo which will be used to convert between ticks and milliseconds. 
<p>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00553">553</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a23"></a><!-- doxytag: member="DeviceManager::tmrStart" ref="a23" args="(long int tpcn)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::tmrStart           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">long int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>tpcn</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Starts the timer. 
<p>
You must call tmrStart before using <a class="el" href="classDeviceManager.html#a21">wait()</a>
<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00565">565</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a24"></a><!-- doxytag: member="DeviceManager::tmrStop" ref="a24" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::tmrStop           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Stops the timer. 
<p>
This will be called by <a class="el" href="classDeviceManager.html#a11">closeDev()</a> before closing the device
<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00591">591</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a38"></a><!-- doxytag: member="DeviceManager::type" ref="a38" args="(int i)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">const char * DeviceManager::type           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>i</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the type of device the <code>i-th</code> device is , in a user-friendly string . 
<p>
For example, "External Midi Port" for midi ports, "FM" for FM synthesizers, "GUS" for Gravis Ultrasound devices, etc.
<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00736">736</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a9"></a><!-- doxytag: member="DeviceManager::usingAlsa" ref="a9" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">int DeviceManager::usingAlsa           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns true if it's running ALSA and false if OSS is being run. 
<p>

<p>
Definition at line <a class="el" href="deviceman_8h-source.html#l00239">239</a> of file <a class="el" href="deviceman_8h-source.html">deviceman.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a21"></a><!-- doxytag: member="DeviceManager::wait" ref="a21" args="(double ms)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void DeviceManager::wait           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">double&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>ms</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the number of milliseconds at which the next event will be sent. 
<p>
This way, you can schedule notes and events to send to the MIDI device. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classDeviceManager.html#a23">tmrStart()</a></dd></dl>

<p>
Definition at line <a class="el" href="deviceman_8cc-source.html#l00537">537</a> of file <a class="el" href="deviceman_8cc-source.html">deviceman.cc</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="deviceman_8h-source.html">deviceman.h</a><li><a class="el" href="deviceman_8cc-source.html">deviceman.cc</a></ul>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>libkmid</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="dirs.html">Directories</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classAlsaOut.html">alsaout</option>,  <option value="classDeviceManager.html">devicemanager</option>,  <option value="classFMOut.html">fmout</option>,  <option value="classGUSOut.html">gusout</option>,  <option value="classMidiMapper.html">midimapper</option>,  <option value="classMidiOut.html">midiout</option>,  <option value="classMidiPlayer.html">midiplayer</option>,  <option value="classMidiStatus.html">midistatus</option>,  <option value="classMidiTrack.html">miditrack</option>,  <option value="classNoteArray.html">notearray</option>,  <option value="classSynthOut.html">synthout</option>,  <option value="classVoiceManager.html">voicemanager</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>