You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
7.6KB

  1. <HTML>
  2. <HEAD>
  3. <TITLE>The RtAudio Tutorial</TITLE>
  4. <LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
  5. </HEAD>
  6. <BODY BGCOLOR="#FFFFFF">
  7. <CENTER>
  8. <a class="qindex" href="index.html">Tutorial</a> &nbsp; <a class="qindex" href="annotated.html">Class/Enum List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </CENTER>
  9. <HR>
  10. <!-- Generated by Doxygen 1.3.4 -->
  11. <h1>RtError Class Reference</h1>Exception handling class for <a class="el" href="classRtAudio.html">RtAudio</a> &amp; RtMidi.
  12. <a href="#_details">More...</a>
  13. <p>
  14. <code>#include &lt;<a class="el" href="RtError_8h-source.html">RtError.h</a>&gt;</code>
  15. <p>
  16. <a href="classRtError-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
  17. <tr><td></td></tr>
  18. <tr><td colspan=2><br><h2>Public Types</h2></td></tr>
  19. <tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classRtError.html#w11">Type</a> { <br>
  20. &nbsp;&nbsp;<a class="el" href="classRtError.html#w11w0">WARNING</a>,
  21. <a class="el" href="classRtError.html#w11w1">DEBUG_WARNING</a>,
  22. <a class="el" href="classRtError.html#w11w2">UNSPECIFIED</a>,
  23. <a class="el" href="classRtError.html#w11w3">NO_DEVICES_FOUND</a>,
  24. <br>
  25. &nbsp;&nbsp;<a class="el" href="classRtError.html#w11w4">INVALID_DEVICE</a>,
  26. <a class="el" href="classRtError.html#w11w5">INVALID_STREAM</a>,
  27. <a class="el" href="classRtError.html#w11w6">MEMORY_ERROR</a>,
  28. <a class="el" href="classRtError.html#w11w7">INVALID_PARAMETER</a>,
  29. <br>
  30. &nbsp;&nbsp;<a class="el" href="classRtError.html#w11w8">DRIVER_ERROR</a>,
  31. <a class="el" href="classRtError.html#w11w9">SYSTEM_ERROR</a>,
  32. <a class="el" href="classRtError.html#w11w10">THREAD_ERROR</a>
  33. <br>
  34. }</td></tr>
  35. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Defined RtError types. </em> <a href="#w11">More...</a><em><br><br></td></tr>
  36. <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
  37. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a0" doxytag="RtError::RtError" ></a>
  38. &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classRtError.html#a0">RtError</a> (const std::string &amp;message, <a class="el" href="classRtError.html#w11">Type</a> type=RtError::UNSPECIFIED)</td></tr>
  39. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The constructor. <br><br></td></tr>
  40. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a1" doxytag="RtError::~RtError" ></a>
  41. virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classRtError.html#a1">~RtError</a> (void)</td></tr>
  42. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The destructor. <br><br></td></tr>
  43. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a2" doxytag="RtError::printMessage" ></a>
  44. virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classRtError.html#a2">printMessage</a> (void)</td></tr>
  45. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Prints thrown error message to stderr. <br><br></td></tr>
  46. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a3" doxytag="RtError::getType" ></a>
  47. virtual const <a class="el" href="classRtError.html#w11">Type</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classRtError.html#a3">getType</a> (void)</td></tr>
  48. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the thrown error message type. <br><br></td></tr>
  49. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a4" doxytag="RtError::getMessage" ></a>
  50. virtual const std::string &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classRtError.html#a4">getMessage</a> (void)</td></tr>
  51. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the thrown error message string. <br><br></td></tr>
  52. <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a5" doxytag="RtError::getMessageString" ></a>
  53. virtual const char *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classRtError.html#a5">getMessageString</a> (void)</td></tr>
  54. <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the thrown error message as a C string. <br><br></td></tr>
  55. </table>
  56. <hr><a name="_details"></a><h2>Detailed Description</h2>
  57. Exception handling class for <a class="el" href="classRtAudio.html">RtAudio</a> &amp; RtMidi.
  58. <p>
  59. The RtError class is quite simple but it does allow errors to be "caught" by <a class="el" href="classRtError.html#w11">RtError::Type</a>. See the <a class="el" href="classRtAudio.html">RtAudio</a> and RtMidi documentation to know which methods can throw an RtError.
  60. <p>
  61. <hr><h2>Member Enumeration Documentation</h2>
  62. <a class="anchor" name="w11" doxytag="RtError::Type" ></a><p>
  63. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  64. <tr>
  65. <td class="mdRow">
  66. <table cellpadding="0" cellspacing="0" border="0">
  67. <tr>
  68. <td class="md" nowrap valign="top"> enum <a class="el" href="classRtError.html#w11">RtError::Type</a>
  69. </table>
  70. </td>
  71. </tr>
  72. </table>
  73. <table cellspacing=5 cellpadding=0 border=0>
  74. <tr>
  75. <td>
  76. &nbsp;
  77. </td>
  78. <td>
  79. <p>
  80. Defined RtError types.
  81. <p>
  82. <dl compact><dt><b>Enumeration values: </b></dt><dd>
  83. <table border=0 cellspacing=2 cellpadding=0>
  84. <tr><td valign=top><em><a class="anchor" name="w11w0" doxytag="WARNING" ></a>WARNING</em>&nbsp;</td><td>
  85. A non-critical error. </td></tr>
  86. <tr><td valign=top><em><a class="anchor" name="w11w1" doxytag="DEBUG_WARNING" ></a>DEBUG_WARNING</em>&nbsp;</td><td>
  87. A non-critical error which might be useful for debugging. </td></tr>
  88. <tr><td valign=top><em><a class="anchor" name="w11w2" doxytag="UNSPECIFIED" ></a>UNSPECIFIED</em>&nbsp;</td><td>
  89. The default, unspecified error type. </td></tr>
  90. <tr><td valign=top><em><a class="anchor" name="w11w3" doxytag="NO_DEVICES_FOUND" ></a>NO_DEVICES_FOUND</em>&nbsp;</td><td>
  91. No devices found on system. </td></tr>
  92. <tr><td valign=top><em><a class="anchor" name="w11w4" doxytag="INVALID_DEVICE" ></a>INVALID_DEVICE</em>&nbsp;</td><td>
  93. An invalid device ID was specified. </td></tr>
  94. <tr><td valign=top><em><a class="anchor" name="w11w5" doxytag="INVALID_STREAM" ></a>INVALID_STREAM</em>&nbsp;</td><td>
  95. An invalid stream ID was specified. </td></tr>
  96. <tr><td valign=top><em><a class="anchor" name="w11w6" doxytag="MEMORY_ERROR" ></a>MEMORY_ERROR</em>&nbsp;</td><td>
  97. An error occured during memory allocation. </td></tr>
  98. <tr><td valign=top><em><a class="anchor" name="w11w7" doxytag="INVALID_PARAMETER" ></a>INVALID_PARAMETER</em>&nbsp;</td><td>
  99. An invalid parameter was specified to a function. </td></tr>
  100. <tr><td valign=top><em><a class="anchor" name="w11w8" doxytag="DRIVER_ERROR" ></a>DRIVER_ERROR</em>&nbsp;</td><td>
  101. A system driver error occured. </td></tr>
  102. <tr><td valign=top><em><a class="anchor" name="w11w9" doxytag="SYSTEM_ERROR" ></a>SYSTEM_ERROR</em>&nbsp;</td><td>
  103. A system error occured. </td></tr>
  104. <tr><td valign=top><em><a class="anchor" name="w11w10" doxytag="THREAD_ERROR" ></a>THREAD_ERROR</em>&nbsp;</td><td>
  105. A thread error occured. </td></tr>
  106. </table>
  107. </dl>
  108. </td>
  109. </tr>
  110. </table>
  111. <hr>The documentation for this class was generated from the following file:<ul>
  112. <li><a class="el" href="RtError_8h-source.html">RtError.h</a></ul>
  113. <HR>
  114. <table><tr><td><img src="../images/mcgill.gif" width=165></td>
  115. <td>&copy;2001-2004 Gary P. Scavone, McGill University. All Rights Reserved.<br>
  116. Maintained by Gary P. Scavone, <a href="mailto:gary@music.mcgill.ca">gary@music.mcgill.ca</a></td></tr>
  117. </table>
  118. </BODY>
  119. </HTML>