Audio plugin host https://kx.studio/carla
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.

85 lines
3.0KB

  1. /*! \page compiling Debugging & Compiling
  2. \section debug Debugging
  3. If you are having problems getting RtAudio to run on your system, make sure to pass a value of \e true to the RtAudio::showWarnings() function (this is the default setting). A variety of warning messages will be displayed which may help in determining the problem. Also, try using the programs included in the <tt>tests</tt> directory. The program <tt>audioprobe</tt> displays the queried capabilities of all hardware devices found for all APIs compiled. When using the ALSA and JACK APIs, further information can be displayed by defining the preprocessor definition __RTAUDIO_DEBUG__.
  4. \section compile Compiling
  5. In order to compile RtAudio for a specific OS and audio API, it is necessary to supply the appropriate preprocessor definition and library within the compiler statement:
  6. <P>
  7. <TABLE BORDER=2 COLS=5 WIDTH="100%">
  8. <TR BGCOLOR="beige">
  9. <TD WIDTH="5%"><B>OS:</B></TD>
  10. <TD WIDTH="5%"><B>Audio API:</B></TD>
  11. <TD WIDTH="5%"><B>C++ Class:</B></TD>
  12. <TD WIDTH="5%"><B>Preprocessor Definition:</B></TD>
  13. <TD WIDTH="5%"><B>Library or Framework:</B></TD>
  14. <TD><B>Example Compiler Statement:</B></TD>
  15. </TR>
  16. <TR>
  17. <TD>Linux</TD>
  18. <TD>ALSA</TD>
  19. <TD>RtApiAlsa</TD>
  20. <TD>__LINUX_ALSA__</TD>
  21. <TD><TT>asound, pthread</TT></TD>
  22. <TD><TT>g++ -Wall -D__LINUX_ALSA__ -o audioprobe audioprobe.cpp RtAudio.cpp -lasound -lpthread</TT></TD>
  23. </TR>
  24. <TR>
  25. <TD>Linux</TD>
  26. <TD>PulseAudio</TD>
  27. <TD>RtApiPulse</TD>
  28. <TD>__LINUX_PULSE__</TD>
  29. <TD><TT>pthread</TT></TD>
  30. <TD><TT>g++ -Wall -D__LINUX_PULSE__ -o audioprobe audioprobe.cpp RtAudio.cpp -lpthread -lpulse-simple -lpulse</TT></TD>
  31. </TR>
  32. <TR>
  33. <TD>Linux</TD>
  34. <TD>OSS</TD>
  35. <TD>RtApiOss</TD>
  36. <TD>__LINUX_OSS__</TD>
  37. <TD><TT>pthread</TT></TD>
  38. <TD><TT>g++ -Wall -D__LINUX_OSS__ -o audioprobe audioprobe.cpp RtAudio.cpp -lpthread</TT></TD>
  39. </TR>
  40. <TR>
  41. <TD>Linux or Macintosh OS-X</TD>
  42. <TD>Jack Audio Server</TD>
  43. <TD>RtApiJack</TD>
  44. <TD>__UNIX_JACK__</TD>
  45. <TD><TT>jack, pthread</TT></TD>
  46. <TD><TT>g++ -Wall -D__UNIX_JACK__ -o audioprobe audioprobe.cpp RtAudio.cpp `pkg-config --cflags --libs jack` -lpthread</TT></TD>
  47. </TR>
  48. <TR>
  49. <TD>Macintosh OS-X</TD>
  50. <TD>CoreAudio</TD>
  51. <TD>RtApiCore</TD>
  52. <TD>__MACOSX_CORE__</TD>
  53. <TD><TT>pthread, CoreAudio</TT></TD>
  54. <TD><TT>g++ -Wall -D__MACOSX_CORE__ -o audioprobe audioprobe.cpp RtAudio.cpp -framework CoreAudio -lpthread</TT></TD>
  55. </TR>
  56. <TR>
  57. <TD>Windows</TD>
  58. <TD>Direct Sound</TD>
  59. <TD>RtApiDs</TD>
  60. <TD>__WINDOWS_DS__</TD>
  61. <TD><TT>dsound.lib (ver. 5.0 or higher), multithreaded</TT></TD>
  62. <TD><I>compiler specific</I></TD>
  63. </TR>
  64. <TR>
  65. <TD>Windows</TD>
  66. <TD>ASIO</TD>
  67. <TD>RtApiAsio</TD>
  68. <TD>__WINDOWS_ASIO__</TD>
  69. <TD><I>various ASIO header and source files</I></TD>
  70. <TD><I>compiler specific</I></TD>
  71. </TR>
  72. </TABLE>
  73. <P>
  74. The example compiler statements above could be used to compile the <TT>audioprobe.cpp</TT> example file, assuming that <TT>audioprobe.cpp</TT>, <TT>RtAudio.h</TT>, <tt>RtError.h</tt>, and <TT>RtAudio.cpp</TT> all exist in the same directory.
  75. */