Aaron Laws
2016-04-19 20:09:23 UTC
I am now able to play audio (sometimes) from audacity, but it seems like
audacity is not sharing the audio server well. If audio is playing when
audacity starts up, the playback device list is limited to those not being
used at startup. If no audio is playing at startup (and pavucontrol is not
open), all the devices are in the playback list, but when audio is playing
(from another application) when I select one of these devices, or when I
try to play audio from audacity, failures ensue. A window shows up saying,
"Error while opening sound device. Please check the playback device
settings and the project sample rate.", and on stdout or stderr, I see
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1733
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir,
&self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1900
Expression 'PaAlsaStreamComponent_Initialize( &self->playback, alsaApi,
outParams, StreamDirection_Out, NULL != callback )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 2171
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters,
outputParameters, sampleRate, framesPerBuffer, callback, streamFlags,
userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2836
If I stop the audio in the other application, I'm free to play using
audacity. Also, when playing with audacity, pavucontrol does not show an
audio stream in the "Playback" tab.
All of this makes me think that audacity is attempting to take exclusive
control of the audio device. Perhaps this is explained by the fact that the
selected Audio Host (see device_toolbar.html) is set to "ALSA". This means
that pulse audio is being bypassed by audacity?
If that's the case, how do I get pulse audio to be the Audio Host? How can
I get audacity to play nicely with the rest of the system?
audacity is not sharing the audio server well. If audio is playing when
audacity starts up, the playback device list is limited to those not being
used at startup. If no audio is playing at startup (and pavucontrol is not
open), all the devices are in the playback list, but when audio is playing
(from another application) when I select one of these devices, or when I
try to play audio from audacity, failures ensue. A window shows up saying,
"Error while opening sound device. Please check the playback device
settings and the project sample rate.", and on stdout or stderr, I see
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1733
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir,
&self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1900
Expression 'PaAlsaStreamComponent_Initialize( &self->playback, alsaApi,
outParams, StreamDirection_Out, NULL != callback )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 2171
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters,
outputParameters, sampleRate, framesPerBuffer, callback, streamFlags,
userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2836
If I stop the audio in the other application, I'm free to play using
audacity. Also, when playing with audacity, pavucontrol does not show an
audio stream in the "Playback" tab.
All of this makes me think that audacity is attempting to take exclusive
control of the audio device. Perhaps this is explained by the fact that the
selected Audio Host (see device_toolbar.html) is set to "ALSA". This means
that pulse audio is being bypassed by audacity?
If that's the case, how do I get pulse audio to be the Audio Host? How can
I get audacity to play nicely with the rest of the system?