KXStudio Website https://kx.studio/
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.

296 lines

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
  4. lang="en" dir="ltr">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>
  8. alsa_and_kxstudio [LinuxMusicians Wiki]
  9. </title>
  10. <meta name="generator" content="DokuWiki Release 2008-05-05" />
  11. <meta name="robots" content="index,follow" />
  12. <meta name="date" content="2013-05-12T09:54:13-0400" />
  13. <meta name="keywords" content="alsa_and_kxstudio" />
  14. <link rel="search" type="application/opensearchdescription+xml" href="/lib/exe/opensearch.php" title="LinuxMusicians Wiki" />
  15. <link rel="start" href="/" />
  16. <link rel="contents" href="/doku.php?id=alsa_and_kxstudio&amp;do=index" title="Index" />
  17. <link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/feed.php" />
  18. <link rel="alternate" type="application/rss+xml" title="Current Namespace" href="/feed.php?mode=list&amp;ns=" />
  19. <link rel="alternate" type="text/html" title="Plain HTML" href="/doku.php?do=export_xhtml&amp;id=alsa_and_kxstudio" />
  20. <link rel="alternate" type="text/plain" title="Wiki Markup" href="/doku.php?do=export_raw&amp;id=alsa_and_kxstudio" />
  21. <link rel="stylesheet" media="all" type="text/css" href="/lib/exe/css.php?s=all&amp;t=default" />
  22. <link rel="stylesheet" media="screen" type="text/css" href="/lib/exe/css.php?t=default" />
  23. <link rel="stylesheet" media="print" type="text/css" href="/lib/exe/css.php?s=print&amp;t=default" />
  24. <script type="text/javascript" charset="utf-8" src="/lib/exe/js.php?edit=0&amp;write=0" ></script>
  25. <link rel="shortcut icon" href="/lib/tpl/default/images/favicon.ico" />
  26. </head>
  27. <body>
  28. <div class="dokuwiki">
  29. <div class="stylehead">
  30. <div class="header">
  31. <div class="pagename">
  32. [[<a href="/doku.php?id=alsa_and_kxstudio&amp;do=backlink" title="Backlinks">alsa_and_kxstudio</a>]]
  33. </div>
  34. <div class="logo">
  35. <a href="/doku.php" name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]">LinuxMusicians Wiki</a> </div>
  36. <div class="clearer"></div>
  37. </div>
  38. <div class="bar" id="bar__top">
  39. <div class="bar-left" id="bar__topleft">
  40. <form class="button btn_source" method="post" action="/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="" /><input type="hidden" name="id" value="alsa_and_kxstudio" /><input type="submit" value="Show pagesource" class="button" accesskey="v" title="Show pagesource [ALT+V]" /></div></form> <form class="button btn_revs" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="revisions" /><input type="hidden" name="id" value="alsa_and_kxstudio" /><input type="submit" value="Old revisions" class="button" accesskey="o" title="Old revisions [ALT+O]" /></div></form> </div>
  41. <div class="bar-right" id="bar__topright">
  42. <form class="button btn_recent" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="recent" /><input type="hidden" name="id" value="" /><input type="submit" value="Recent changes" class="button" accesskey="r" title="Recent changes [ALT+R]" /></div></form> <form action="/doku.php" accept-charset="utf-8" class="search" id="dw__search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[ALT+F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>&nbsp;
  43. </div>
  44. <div class="clearer"></div>
  45. </div>
  46. <div class="breadcrumbs">
  47. <span class="bchead">Trace:</span> <span class="bcsep">&raquo;</span> <span class="curid"><a href="/doku.php?id=alsa_and_kxstudio" class="breadcrumbs" title="alsa_and_kxstudio">alsa_and_kxstudio</a></span> </div>
  48. </div>
  49. <div class="page">
  50. <!-- wikipage start -->
  51. <!-- TOC START -->
  52. <div class="toc">
  53. <div class="tocheader toctoggle" id="toc__header">Table of Contents</div>
  54. <div id="toc__inside">
  55. <ul class="toc">
  56. <li class="level1"><div class="li"><span class="li"><a href="#alsa_and_kxstudio" class="toc">ALSA and KXStudio</a></span></div>
  57. <ul class="toc">
  58. <li class="level2"><div class="li"><span class="li"><a href="#kmix" class="toc">kmix</a></span></div></li>
  59. <li class="level2"><div class="li"><span class="li"><a href="#cadence_and_alsa" class="toc">Cadence and ALSA</a></span></div></li>
  60. <li class="level2"><div class="li"><span class="li"><a href="#non-jack_apps" class="toc">non-JACK apps</a></span></div></li>
  61. <li class="level2"><div class="li"><span class="li"><a href="#useful_alsa_commands" class="toc">Useful ALSA commands</a></span></div></li></ul>
  62. </li></ul>
  63. </div>
  64. </div>
  65. <!-- TOC END -->
  66. <h1><a name="alsa_and_kxstudio" id="alsa_and_kxstudio">ALSA and KXStudio</a></h1>
  67. <div class="level1">
  68. <p>
  69. The Advanced Linux Sound Architecture is the primary sound system used by Linux. Even those who only plan to use JACK with the FFADO (FireWire) drivers should still have familiarity with ALSA.
  70. </p>
  71. </div>
  72. <h2><a name="kmix" id="kmix">kmix</a></h2>
  73. <div class="level2">
  74. <p>
  75. The main ALSA mixer included with KXStudio is called kmix. You can use kmix to adjust audio input and output levels, mute and unmute channels and change other non-FireWire audio device settings such as selecting between SPDIF and analog inputs if your device has such features. The kmix system tray icon looks like this:
  76. </p>
  77. <p>
  78. <a href="/lib/exe/detail.php?id=alsa_and_kxstudio&amp;cache=cache&amp;media=kmix-tray.png" class="media" title="kmix-tray.png"><img src="/lib/exe/fetch.php?w=&amp;h=&amp;cache=cache&amp;media=kmix-tray.png" class="media" title="The kmix icon" alt="The kmix icon" /></a>
  79. </p>
  80. <p>
  81. If you have a scrollwheel function on a mouse or trackpad, you can hover over the kmix tray icon and adjust the Master volume by moving the scrollwheel up and down. If you left-click on the kmix tray icon it will display a mini mixer. To see a full mixer with more controls, click the &#039;Mixer&#039; button within the mini mixer menu.
  82. </p>
  83. <p>
  84. <a href="/lib/exe/detail.php?id=alsa_and_kxstudio&amp;cache=cache&amp;media=kmixer.png" class="media" title="kmixer.png"><img src="/lib/exe/fetch.php?w=&amp;h=&amp;cache=cache&amp;media=kmixer.png" class="media" title="kmix mixer" alt="kmix mixer" /></a>
  85. </p>
  86. <p>
  87. Here we see the main kmix mixer window. kmix displays the controls for each ALSA device on its own separate tab. In this screenshot the &#039;HDA Intel&#039; onboard audio device is selected. The &#039;UAC3553B&#039; tab displays controls for a USB audio device whilst &#039;Playback Streams&#039; can be ignored unless you are using PulseAudio.
  88. </p>
  89. <p>
  90. You will notice that each fader has a small speaker icon just below it. When these speaker icons display a small red cross on them, as &#039;Mic&#039; and &#039;Mic Boost&#039; do in the screenshot, that indicates the channel is currently muted. You can toggle muting simply by left-clicking on the speaker icons.
  91. </p>
  92. <p>
  93. In the bottom right corner of the mixer window there is a tool icon. This icon allows you to configure which channels are available to control for the currently selected kmix device tab. You may find that some controls you need are missing at first, so you may add them via this Configure Channels window.
  94. </p>
  95. <p>
  96. Whilst there is a standard defined for USB audio devices, relatively few devices fully comply with it. What this means for ALSA and USB devices is that sometimes you will see no controls under kmix for some USB devices or controls may not function as expected. Such issues may be worked around by inserting an app such as Non mixer or jack_mixer between an audio source and the problematic output device until the issue is fixed within ALSA.
  97. </p>
  98. </div>
  99. <h2><a name="cadence_and_alsa" id="cadence_and_alsa">Cadence and ALSA</a></h2>
  100. <div class="level2">
  101. <p>
  102. Cadence is primarily used to control and monitor the various Linux sound systems, including ALSA, under KXStudio. The main Cadence window has a &#039;JACK bridges&#039; section which contains two ALSA/JACK bridges - one for ALSA audio and one for MIDI. You will not hear audio produced by ALSA-only apps when JACK is running if the ALSA audio bridge is stopped. Likewise, you will be unable to access MIDI devices if the ALSA MIDI bridge isn&#039;t running when JACK is.
  103. </p>
  104. </div>
  105. <h2><a name="non-jack_apps" id="non-jack_apps">non-JACK apps</a></h2>
  106. <div class="level2">
  107. <p>
  108. As JACK increases in popularity, it is more widely supported. However, several apps are still ALSA-only. Such apps will have their audio channeled via the same ALSA to JACK bridge. These include:
  109. </p>
  110. <p>
  111. <strong>Adobe Flash Player</strong> (as used by Firefox and other browsers for sites such as YouTube)
  112. </p>
  113. <p>
  114. <strong>Many games and other various programs</strong>
  115. </p>
  116. <p>
  117. Some other apps have only partial JACK support. These work with JACK directly, have their own JACK connections, and function without the ALSA to JACK bridge, but their connections are not persistent. They will temporarily connect to JACK while playing but drop their connection as soon as playback is stopped. Examples of these apps are:
  118. </p>
  119. <p>
  120. <strong>Audacity</strong>
  121. </p>
  122. <p>
  123. <strong>SMPlayer</strong>
  124. </p>
  125. <p>
  126. <strong>VLC</strong>
  127. </p>
  128. <p>
  129. Hence, none of these offer the individual audio routing functionality or other features offered by fully JACK-native software.
  130. </p>
  131. </div>
  132. <h2><a name="useful_alsa_commands" id="useful_alsa_commands">Useful ALSA commands</a></h2>
  133. <div class="level2">
  134. <p>
  135. The following commands can be useful for troubleshooting ALSA issues in a terminal:
  136. </p>
  137. <pre class="code">alsamixer</pre>
  138. <p>
  139. The original ALSA mixer
  140. </p>
  141. <pre class="code">cat /proc/asound/cards</pre>
  142. <p>
  143. Displays attached ALSA devices
  144. </p>
  145. <pre class="code">cat ~/.asoundrc</pre>
  146. <p>
  147. Displays your ALSA configuration file
  148. </p>
  149. <pre class="code">sudo alsactl store 0</pre>
  150. <p>
  151. Saves the current settings for ALSA device 0
  152. </p>
  153. </div>
  154. <!-- wikipage stop -->
  155. </div>
  156. <div class="clearer">&nbsp;</div>
  157. <div class="stylefoot">
  158. <div class="meta">
  159. <div class="user">
  160. </div>
  161. <div class="doc">
  162. alsa_and_kxstudio.txt &middot; Last modified: 2013/05/12 09:54 by danboid </div>
  163. </div>
  164. <div class="bar" id="bar__bottom">
  165. <div class="bar-left" id="bar__bottomleft">
  166. <form class="button btn_source" method="post" action="/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="" /><input type="hidden" name="id" value="alsa_and_kxstudio" /><input type="submit" value="Show pagesource" class="button" accesskey="v" title="Show pagesource [ALT+V]" /></div></form> <form class="button btn_revs" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="revisions" /><input type="hidden" name="id" value="alsa_and_kxstudio" /><input type="submit" value="Old revisions" class="button" accesskey="o" title="Old revisions [ALT+O]" /></div></form> </div>
  167. <div class="bar-right" id="bar__bottomright">
  168. <form class="button btn_login" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="login" /><input type="hidden" name="sectok" value="5fe9f263742930faa220a957b594406d" /><input type="hidden" name="id" value="alsa_and_kxstudio" /><input type="submit" value="Login" class="button" title="Login" /></div></form> <form class="button btn_index" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="index" /><input type="hidden" name="id" value="alsa_and_kxstudio" /><input type="submit" value="Index" class="button" accesskey="x" title="Index [ALT+X]" /></div></form> <a class="nolink" href="#dokuwiki__top"><input type="button" class="button" value="Back to top" onclick="window.scrollTo(0, 0)" title="Back to top" /></a>&nbsp;
  169. </div>
  170. <div class="clearer"></div>
  171. </div>
  172. </div>
  173. </div>
  174. <div class="footerinc">
  175. <a href="/feed.php" title="Recent changes RSS feed"><img src="/lib/tpl/default/images/button-rss.png" width="80" height="15" alt="Recent changes RSS feed" /></a>
  176. <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/" rel="license" title="Creative Commons License"><img src="/lib/tpl/default/images/button-cc.gif" width="80" height="15" alt="Creative Commons License" /></a>
  177. <a href="http://wiki.splitbrain.org/wiki:donate" title="Donate"><img src="/lib/tpl/default/images/button-donate.gif" alt="Donate" width="80" height="15" /></a>
  178. <a href="http://www.php.net" title="Powered by PHP"><img src="/lib/tpl/default/images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a>
  179. <a href="http://validator.w3.org/check/referer" title="Valid XHTML 1.0"><img src="/lib/tpl/default/images/button-xhtml.png" width="80" height="15" alt="Valid XHTML 1.0" /></a>
  180. <a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS"><img src="/lib/tpl/default/images/button-css.png" width="80" height="15" alt="Valid CSS" /></a>
  181. <a href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Driven by DokuWiki"><img src="/lib/tpl/default/images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
  182. <!--
  183. <rdf:RDF xmlns="http://web.resource.org/cc/"
  184. xmlns:dc="http://purl.org/dc/elements/1.1/"
  185. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  186. <Work rdf:about="">
  187. <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
  188. <license rdf:resource="http://creativecommons.org/licenses/by-nc-sa/2.0/" />
  189. </Work>
  190. <License rdf:about="http://creativecommons.org/licenses/by-nc-sa/2.0/">
  191. <permits rdf:resource="http://web.resource.org/cc/Reproduction" />
  192. <permits rdf:resource="http://web.resource.org/cc/Distribution" />
  193. <requires rdf:resource="http://web.resource.org/cc/Notice" />
  194. <requires rdf:resource="http://web.resource.org/cc/Attribution" />
  195. <prohibits rdf:resource="http://web.resource.org/cc/CommercialUse" />
  196. <permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
  197. <requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
  198. </License>
  199. </rdf:RDF>
  200. -->
  201. </div>
  202. <div class="no"><img src="/lib/exe/indexer.php?id=alsa_and_kxstudio&amp;1369167596" width="1" height="1" alt="" /></div>
  203. </body>
  204. </html>