More than 1 minute to start (Ubunutu Studio 9.10)

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
Locked
Scary Hallo
Posts: 5
Joined: Mon Nov 02, 2009 2:39 pm
Operating System: Please select

More than 1 minute to start (Ubunutu Studio 9.10)

Post by Scary Hallo » Thu Dec 17, 2009 8:16 am

Hello,

I've just installed Ununtu Studio 9.10. Now, when I try to start Audacity, it takes more than 1 minute to start. And then I cannot even playback anything. When I start it from terminal, I got the following messages:

Code: Select all

[email protected]:~$ audacity
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
Enhanced3DNow! detected
SSE2 detected
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'r' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1349
Expression 'PaAlsaStreamComponent_FinishConfigure( &self->playback, hwParamsPlayback, outParams, self->primeBuffers, realSr, outputLatency )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1894
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1999
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3668
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1101
I'm using version 1.3.9 together with jack.
Can anyone help?

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: More than 1 minute to start (Ubunutu Studio 9.10)

Post by steve » Thu Dec 17, 2009 6:08 pm

Unfortunately Audacity has always been a bit dodgy with Jack and the current 1.3.10 version is just the same.

Here's how I get it working:
1) Connect a USB audio device ! I don't have to actually use the USB sound card, it just overcomes the problem of Audacity not being able to find an available audio device. I suspect that having a second sound card of any type will do the same trick.
2) Open Audacity WITHOUT Jack running and set the sample rate and bit depth in Preferences to whatever you will be using with Jack. Then close Audacity.
3) Start Jack and open Audacity - In Audacity Preferences, set the Host to Jack - if you're lucky you will see the Recording and Playback devices switch to "System" automatically. At this point I usually restart Audacity, though I don't think that it's actually necessary, it does however ensure that the settings are written to Audacity's configuration file.

Audacity should now be working with Jack. There should be no need to go through this set-up again as the settings should be read from the configuration file - just ensure that Jack is running before you open Audacity. You can also disconnect the USB device now - it's only required for the initial set-up.

Note that to change the routing in Jack Connect, the Audacity (portaudio) inputs are only visible when Audacity is in recording mode (record and pause, then connect) and the output ports are only visible when in playback mode (play and pause then connect). The portaudio connections disappear when Audacity is stopped and will revert to the default connection of "System".
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Scary Hallo
Posts: 5
Joined: Mon Nov 02, 2009 2:39 pm
Operating System: Please select

Re: More than 1 minute to start (Ubunutu Studio 9.10)

Post by Scary Hallo » Thu Dec 17, 2009 8:38 pm

Hello stevethefiddle,

Thank you. I did exactly as you suggested. And it helped.
By the way, I discovered my Behringer UCA 202 (very low cost) works with linux. Thought I would work only with windows.

Rock on!!!
:D

Locked