Difference between revisions of "Linux Issues"

From Audacity Wiki
Jump to: navigation, search
(Reverting spam)
Line 1: Line 1:
[[Dinmoooo]] [[Dinnoooo]] [[Dinooooo]] [[Dinpoooo]] [[Dinqoooo]]
+
= Error Initializing or Opening Sound Device =
[http://www.shgxgs.obm.cn/ 上海搬场公司]
+
* If you see the following error message while launching Audacity
[http://www.daliangdn.obm.cn 地暖]
+
<blockquote>
[http://www.35faxcom.obm.cn 网络传真]
+
'''"Error Initializing Audio: There was an error initializing the audio i/o layer. You will not be able to play or record audio. Error: Host error."'''
[http://www.35fax.com 网络传真]
+
</blockquote>
[http://blog.csdn.net/dinmo 网络传真]
+
 
[http://www.sslcp.com 彩票]
+
then Audacity cannot access your sound card properly. Audacity cannot use the audio I/O layer when it is in use by another application. If you are using Gnome, KDE or another window manager, be sure to disable the system sounds before starting Audacity.
[http://www.sslcp.com 3d]
+
 
[http://www.sslcp.com 福彩3d]
+
* If you are running a sound server such as [http://en.wikipedia.org/wiki/Enlightened_Sound_Daemon eSound (ESD)] (often used with GNOME), asd or [http://en.wikipedia.org/wiki/ARts aRts] (often used with KDE) you will have to disable it before using Audacity. For users with OSS builds of audacity and aRts, you can also use the wrapper provided by aRts and run:
[http://www.sslcp.com 3d彩票]
+
        $  artsdsp audacity
[http://www.sslcp.com 3d试机号]
+
 
[http://www.sslcp.com 3d预测]
+
:to launch audacity.
[http://www.sslcp.com 彩票预测]
+
 
[http://www.sslcp.com 排列3]
+
* If you use Audacity with ''Ubuntu 6.06 LTS "Dapper"'' (i.e. with the GNOME desktop) and you are greeted with this error message, try disabling the eSound (ESD) server in the Sound Preference Panel. Navigate to "System" > "Preferences" > "Sound". The Sound Preferences panel opens. Click on the "Sounds" tab. See if the box next to "Enable software sound mixing (ESD)" is checked. Uncheck it and click on the "Close" button. Audacity should now work.
[http://www.sslcp.com 排列5]
+
** On IBM ThinkPad there is a BIOS option to disable modem. If modem is disabled then Ubuntu 6.06 will give error message as above, and other apps also will have no sound.
[http://www.sslcp.com 排列3预测]
+
**Uninstalling and reinstalling Audacity (using Synaptic) has been found to work in two cases on Ubuntu laptops (Thinkpad T23 running GNOME, Compaq Evo N410c running KDE). Yes, it was the same version before and after.
[http://www.sslcp.com 排列三预测]
+
 
[http://www.sslcp.com 排列三]
+
* Another possibility is that somehow, the link to /dev/dsp, or its permissions, were changed without your knowledge by an unknown process. What you should do (as root) is:
[http://www.sslcp.com 排列五]
+
 
[http://www.sslcp.com 双色球开奖]
+
        $ rm /dev/dsp;ln -s /dev/dsp0 /dev/dsp  #also try /dev/dsp1,2,etc.
[http://www.sslcp.com 双色球]
+
        $ chmod 666 /dev/dsp0
[http://www.sslcp.com 双色球彩票]
+
        $ chmod 666 /dev/dsp
[http://www.sslcp.com 体育彩票]
+
 
[http://www.sslcp.com 福利彩票]
+
: If you are using udev in the 2.6 kernel then you may need to alter /etc/udev/rules.d/*.rules to set the correct permisions up permanently.
[http://www.sslcp.com 中国福利彩票]
+
Not to forget the obvious, some distributions (Debian, Gentoo, etc.) have an audio group that has the appropriate permissions. Make certain that Audacity users are members of this group.
[http://www.sslcp.com 中国体育彩票]
+
 
[http://www.sslcp.com 双色球预测 ]
+
* Another possibility is you are using the ALSA device with a version of Audacity built with PortAudio v18, but don't have the OSS emulation modules installed, which you will need to do. See OSS vs ALSA below.  
[http://www.sslcp.com 中国福利彩票双色球]
+
 
[http://www.yt3.com.cn 月饼团购]
+
* If you receive this error
[http://www.yt3.com.cn/xy.html  月饼团购]
+
<blockquote>
[http://www.yt3.com.cn/yz.html 月饼团购]
+
'''"Error opening sound device. Please check the input device settings and the Project Sample Rate"'''
[http://www.yt3.com.cn/xq.html 月饼团购]
+
</blockquote> 
[http://www.yt3.com.cn/link.htm 月饼团购]
+
 
[http://www.yt3.com.cn/xtl.html 月饼团购]
+
even when no other device is using the sound card, and your permissions are correct, it simply means there's a problem with your Audacity settings. You may have a sample rate selected that your sound card does not support. You can alter this by changing the Project Rate at the bottom left of the Audacity window. If you are trying to record something when you receive the error, set the "recording channels" in the Audio I/O tab of Preferences to mono or stereo, and if you are recording something playing on the computer, try turning off  "software playthrough".
[http://www.ebasechina.com 如何丰胸]
+
 
[http://www.ebasechina.com 丰胸]
+
= OSS vs ALSA =
[http://www.ebasechina.com/Html/info/meixiong/2005-12/13/113156172.htm 丰胸]
+
 
[http://www.ebasechina.com/Html/info/meixiong/2005-12/13/113154262.htm 丰胸]
+
One issue with using Audacity on Linux is that there are two different audio systems:
[http://www.ebasechina.com/Html/info/meixiong/index.htm 丰胸]
+
 
[http://www.ebasechina.com 上海丰胸]
+
* OSS (Open Sound System) has been around for a long time and is built-in to most Linux kernels. It works fine for 44100 Hz, stereo, 16-bit audio with ordinary sound cards and typical requirements. It's rather inadequate for professional audio work(*1). Audacity fully supports OSS by default.  
[http://www.ebasechina.com/Html/info/meixiong/2005-12/13/113156172.htm 上海丰胸]
+
 
[http://www.ebasechina.com/Html/info/meixiong/2005-12/13/113154262.htm 上海丰胸]
+
* ALSA (Advanced Linux Sound Architecture) is newer, and doesn't support quite as many older sound cards, but it supports many newer ones and supports many advanced and professional features(*1). It is standard in the current 2.6 kernel. Audacity supports ALSA in two ways:
[http://www.ebasechina.com/Html/info/meixiong/index.htm 上海丰胸]
+
 
[http://www.shgxgs.com 搬场公司]
+
* ALSA comes with an OSS emulation layer. This is what Audacity will use by default if you don't do anything special. Unfortunately the OSS emulation layer is buggy on some systems, and so performance will typically be worse than if you use ALSA or OSS natively. If your system doesn't load OSS emulation at boot-up, you may have to load it manaually by running audacity as
[http://www.shgxgs.com/lxwm.htm 搬场公司]
+
:<tt>  $  aoss audacity </tt>
[http://www.shgxgs.com/fwcn.htm 搬场公司]
+
''<sub>Note:you can install aoss by installing alsa-oss package on ubuntu</sub>''
[http://www.shgxgs.com/fwjs.htm 搬场公司]
+
* Audacity can use ALSA natively if you compile it to use [[PortAudio]]  v19 instead of the default, v18.  Note that v19 is still evolving and not as well tested, but it is the only way that Audacity supports ALSA. Many users have reported good experiences with it. To use it, reconfigure Audacity like this:
[http://www.shgxgs.com 上海搬场公司]
+
:<tt>  ./configure --with-portaudio=v19 --without-portmixer</tt>
[http://www.shgxgs.com/lxwm.htm 上海搬场公司]
+
 
[http://www.shgxgs.com/fwjs.htm 上海搬场公司]
+
(*1)- This is actually incorrect, ALSA does not provide support, yet, for highend professional audio cards that have both 4dB and 10dB stepping. ALSA only currently supports 10dB stepping, this is a well known ALSA mixer issue and frequently addressed on ALSA's forums. Search for envy24 or any of the M-audio cards)
[http://www.shgxgs.com/fwcn.htm 上海搬场公司]
+
 
[http://www.able369.com.cn 隔膜泵]
+
== Configuration errors ==
[http://www.able369.com.cn 计量泵]
+
 
[http://www.able369.com.cn 齿轮泵]
+
If configure fails, with errors like:
[http://www.able369.com.cn 桶泵]
+
:<tt>  $  configure: warning: CC=gcc: invalid host type
[http://www.able369.com.cn 气动泵]
+
: $  configure: error: can only configure for one host and one target at a time
[http://www.hengxinbanjia.com 搬家公司]
+
:  $  configure: error: /bin/sh './configure' failed for lib-src/portaudio-v19</tt>
[http://www.hengxinbanjia.com 北京搬家公司]
+
 
[http://www.021clean.cn/ 上海保洁公司]
+
then put "env -i" in front of the command to supress the CC and CXX environment variables.
[http://www.021clean.cn/ 上海保洁]
+
:<tt>  $  env -i ./configure --with-portaudio=v19 --without-portmixer</tt>
[http://www.021clean.cn/ 上海地毯清洗]
+
 
[http://www.daliangdinuan.com/ 地暖]
+
You may also need to make clean before re-compiling if you have already built audacity with different configure options.
[http://www.bjfld.com/ 酒店预定]
+
 
[http://www.517liuxue.com.cn/ 澳洲留学]
+
:<tt> $ make clean</tt>
[http://www.81111113.com 电脑上门维修]
+
 
[http://www.wangshida.com 暗访包]
+
 
[http://www.wangshida.com 纽扣摄像机]
+
== Portaudio v19 from repository ==
[http://www.wangshida.com 手机暗访摄像机]
+
 
[http://www.postek.com.cn/ 条码]
+
If you are having issues, try a newer portaudio snapshot:
[http://www.postek.com.cn/ 条码打印机]
+
*clear audacity-src-1.2.x/lib-src/portaudio-v19/
[http://www.aushoffice.org/ 澳大利亚留学]
+
*download pa_snapshot_v19.tar.gz from http://www.portaudio.com
[http://www.aushoffice.org/ 留学澳大利亚]
+
*untar into directory mentioned above
[http://www.aushoffice.org/ 澳洲留学]
+
*go back to audacity-src and run ./configure..., make, make install again
[http://www.aushoffice.org/ 留学澳洲]
+
 
 +
Please post your experiences with Audacity and [[PortAudio]] v19 directly to [[Audacity_PortAudio_v19]].
 +
 
 +
= Compiling Audacity =
 +
 
 +
There's a whole separate page on this: [[CompilingAudacity]].
 +
 
 +
A more basic approach to the compiling business can be found at [[CompilingAudacityForBeginners]]
 +
 
 +
= USB microphone =
 +
 
 +
If you have troubles with recording audio through your USB-microphone, go here:
 +
 
 +
* [[USB_mic_on_Linux]]
 +
 
 +
= VST plugins in Linux =
 +
 
 +
If you are really keen on trying VST plugins in Linux, you should check out this site:
 +
 
 +
* [http://quicktoots.linuxaudio.org/toots/vst-plugins/ Using VST/VSTi Plugins In Linux (http://quicktoots.linuxaudio.org/toots/vst-plugins/)]
 +
 
 +
Although it is a little outdated, perhaps it is possible to get something up and running.
 +
 
 +
Also check out [http://www.joebutton.co.uk/fst/ http://www.joebutton.co.uk/fst/].
 +
 
 +
= Testing Audacity 1.3.0b or CVS Head =
 +
 
 +
Audacity 1.3.0 beta is not a stable release. However, it contains a number of improvements, among others; native ALSA support using portaudio v.19. If you have issues trying to compile Audacity beta versions take a look at [[Audacity_1.3_beta_testing]].
 +
 
 +
Instead of compiling Audacity from sources you may want to use precompiled packages:
 +
* for Ubuntu (Dapper and Breezy): http://ubuntu-debs.de/app/audacity/

Revision as of 19:18, 16 May 2007

Error Initializing or Opening Sound Device

  • If you see the following error message while launching Audacity

"Error Initializing Audio: There was an error initializing the audio i/o layer. You will not be able to play or record audio. Error: Host error."

then Audacity cannot access your sound card properly. Audacity cannot use the audio I/O layer when it is in use by another application. If you are using Gnome, KDE or another window manager, be sure to disable the system sounds before starting Audacity.

  • If you are running a sound server such as eSound (ESD) (often used with GNOME), asd or aRts (often used with KDE) you will have to disable it before using Audacity. For users with OSS builds of audacity and aRts, you can also use the wrapper provided by aRts and run:
       $   artsdsp audacity
to launch audacity.
  • If you use Audacity with Ubuntu 6.06 LTS "Dapper" (i.e. with the GNOME desktop) and you are greeted with this error message, try disabling the eSound (ESD) server in the Sound Preference Panel. Navigate to "System" > "Preferences" > "Sound". The Sound Preferences panel opens. Click on the "Sounds" tab. See if the box next to "Enable software sound mixing (ESD)" is checked. Uncheck it and click on the "Close" button. Audacity should now work.
    • On IBM ThinkPad there is a BIOS option to disable modem. If modem is disabled then Ubuntu 6.06 will give error message as above, and other apps also will have no sound.
    • Uninstalling and reinstalling Audacity (using Synaptic) has been found to work in two cases on Ubuntu laptops (Thinkpad T23 running GNOME, Compaq Evo N410c running KDE). Yes, it was the same version before and after.
  • Another possibility is that somehow, the link to /dev/dsp, or its permissions, were changed without your knowledge by an unknown process. What you should do (as root) is:
       $ rm /dev/dsp;ln -s /dev/dsp0 /dev/dsp  #also try /dev/dsp1,2,etc.
       $ chmod 666 /dev/dsp0
       $ chmod 666 /dev/dsp 
If you are using udev in the 2.6 kernel then you may need to alter /etc/udev/rules.d/*.rules to set the correct permisions up permanently.

Not to forget the obvious, some distributions (Debian, Gentoo, etc.) have an audio group that has the appropriate permissions. Make certain that Audacity users are members of this group.

  • Another possibility is you are using the ALSA device with a version of Audacity built with PortAudio v18, but don't have the OSS emulation modules installed, which you will need to do. See OSS vs ALSA below.
  • If you receive this error

"Error opening sound device. Please check the input device settings and the Project Sample Rate"

even when no other device is using the sound card, and your permissions are correct, it simply means there's a problem with your Audacity settings. You may have a sample rate selected that your sound card does not support. You can alter this by changing the Project Rate at the bottom left of the Audacity window. If you are trying to record something when you receive the error, set the "recording channels" in the Audio I/O tab of Preferences to mono or stereo, and if you are recording something playing on the computer, try turning off "software playthrough".

OSS vs ALSA

One issue with using Audacity on Linux is that there are two different audio systems:

  • OSS (Open Sound System) has been around for a long time and is built-in to most Linux kernels. It works fine for 44100 Hz, stereo, 16-bit audio with ordinary sound cards and typical requirements. It's rather inadequate for professional audio work(*1). Audacity fully supports OSS by default.
  • ALSA (Advanced Linux Sound Architecture) is newer, and doesn't support quite as many older sound cards, but it supports many newer ones and supports many advanced and professional features(*1). It is standard in the current 2.6 kernel. Audacity supports ALSA in two ways:
  • ALSA comes with an OSS emulation layer. This is what Audacity will use by default if you don't do anything special. Unfortunately the OSS emulation layer is buggy on some systems, and so performance will typically be worse than if you use ALSA or OSS natively. If your system doesn't load OSS emulation at boot-up, you may have to load it manaually by running audacity as
$ aoss audacity

Note:you can install aoss by installing alsa-oss package on ubuntu

  • Audacity can use ALSA natively if you compile it to use PortAudio v19 instead of the default, v18. Note that v19 is still evolving and not as well tested, but it is the only way that Audacity supports ALSA. Many users have reported good experiences with it. To use it, reconfigure Audacity like this:
./configure --with-portaudio=v19 --without-portmixer

(*1)- This is actually incorrect, ALSA does not provide support, yet, for highend professional audio cards that have both 4dB and 10dB stepping. ALSA only currently supports 10dB stepping, this is a well known ALSA mixer issue and frequently addressed on ALSA's forums. Search for envy24 or any of the M-audio cards)

Configuration errors

If configure fails, with errors like:

$ configure: warning: CC=gcc: invalid host type
$ configure: error: can only configure for one host and one target at a time
$ configure: error: /bin/sh './configure' failed for lib-src/portaudio-v19

then put "env -i" in front of the command to supress the CC and CXX environment variables.

$ env -i ./configure --with-portaudio=v19 --without-portmixer

You may also need to make clean before re-compiling if you have already built audacity with different configure options.

$ make clean


Portaudio v19 from repository

If you are having issues, try a newer portaudio snapshot:

  • clear audacity-src-1.2.x/lib-src/portaudio-v19/
  • download pa_snapshot_v19.tar.gz from http://www.portaudio.com
  • untar into directory mentioned above
  • go back to audacity-src and run ./configure..., make, make install again

Please post your experiences with Audacity and PortAudio v19 directly to Audacity_PortAudio_v19.

Compiling Audacity

There's a whole separate page on this: CompilingAudacity.

A more basic approach to the compiling business can be found at CompilingAudacityForBeginners

USB microphone

If you have troubles with recording audio through your USB-microphone, go here:

VST plugins in Linux

If you are really keen on trying VST plugins in Linux, you should check out this site:

Although it is a little outdated, perhaps it is possible to get something up and running.

Also check out http://www.joebutton.co.uk/fst/.

Testing Audacity 1.3.0b or CVS Head

Audacity 1.3.0 beta is not a stable release. However, it contains a number of improvements, among others; native ALSA support using portaudio v.19. If you have issues trying to compile Audacity beta versions take a look at Audacity_1.3_beta_testing.

Instead of compiling Audacity from sources you may want to use precompiled packages: