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.

Documentation:Manual:alsa_and_kxstudio.php 5.3KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. $PAGE_TITLE = "KXStudio";
  3. $PAGE_TYPE = "NONKXSTUDIO";
  4. $PAGE_SOURCE_1 = ARRAY("/Documentation", "/Documentation", "/Documentation:Manual:alsa_and_kxstudio");
  5. $PAGE_SOURCE_2 = ARRAY("Documentation", "Manual", "ALSA and KXStudio");
  6. include_once("includes/header.php");
  7. ?>
  8. <div class="level1">
  9. <p>
  10. 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.
  11. </p>
  12. </div>
  13. <h2><span name="kmix" id="kmix">kmix</span></h2>
  14. <div class="level2">
  15. <p>
  16. 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:
  17. </p>
  18. <p>
  19. <a href="http://www.wiki.linuxmusicians.com/lib/exe/detail.php?id=alsa_and_kxstudio&amp;cache=cache&amp;media=kmix-tray.png" class="media" title="kmix-tray.png"><img src="http://www.wiki.linuxmusicians.com/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>
  20. </p>
  21. <p>
  22. 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.
  23. </p>
  24. <p>
  25. <a href="<?php echo $ROOT; ?>/screenshots/kmix.png" class="media" title="kmixer.png"><img src="<?php echo $ROOT; ?>/screenshots/kmix.png" class="media" title="kmix mixer" alt="kmix mixer" /></a>
  26. </p>
  27. <p>
  28. 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.
  29. </p>
  30. <p>
  31. 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;Beep&#039; does in the screenshot, that indicates the channel is currently muted. You can toggle muting simply by left-clicking on the speaker icons.
  32. </p>
  33. <p>
  34. 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.
  35. </p>
  36. <p>
  37. 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.
  38. </p>
  39. </div>
  40. <h2><span name="cadence_and_alsa" id="cadence_and_alsa">Cadence and ALSA</span></h2>
  41. <div class="level2">
  42. <p>
  43. 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.
  44. </p>
  45. </div>
  46. <h2><span name="non-jack_apps" id="non-jack_apps">non-JACK apps</span></h2>
  47. <div class="level2">
  48. <p>
  49. 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:
  50. </p>
  51. <p>
  52. <strong>Adobe Flash Player</strong> (as used by Firefox and other browsers for sites such as YouTube)
  53. </p>
  54. <p>
  55. <strong>Many games and other various programs</strong>
  56. </p>
  57. <p>
  58. 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:
  59. </p>
  60. <p>
  61. <strong>Audacity</strong>
  62. </p>
  63. <p>
  64. <strong>SMPlayer</strong>
  65. </p>
  66. <p>
  67. <strong>VLC</strong>
  68. </p>
  69. <p>
  70. Hence, none of these offer the individual audio routing functionality or other features offered by fully JACK-native software.
  71. </p>
  72. </div>
  73. <h2><span name="useful_alsa_commands" id="useful_alsa_commands">Useful ALSA commands</span></h2>
  74. <div class="level2">
  75. <p>
  76. The following commands can be useful for troubleshooting ALSA issues in a terminal:
  77. </p>
  78. <pre class="code">alsamixer</pre>
  79. <p>
  80. The original ALSA mixer
  81. </p>
  82. <pre class="code">cat /proc/asound/cards</pre>
  83. <p>
  84. Displays attached ALSA devices
  85. </p>
  86. <pre class="code">cat ~/.asoundrc</pre>
  87. <p>
  88. Displays your ALSA configuration file
  89. </p>
  90. <pre class="code">sudo alsactl store 0</pre>
  91. <p>
  92. Saves the current settings for ALSA device 0
  93. </p>
  94. </div>
  95. <p><br/></p>
  96. <?php
  97. include_once("includes/footer.php");
  98. ?>