music stops when trying to configure microphone

Bug #897274 reported by Daniel Schürmann on 2011-11-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
High
Unassigned

Bug Description

Mixxx Preferences offers to select HDA Intel: STAC92xx Analog (hw:0,0) for microphone settings. (beside of "Keine" "pulse" and "default").
When I select "HDA ..." Mixxx Stops playing and a pop-up appears
"Fehler beim Öffnen von Audio-Gerät "HDA ..." Device unavailable.

I can make Mixxx playing again if I reconfigure sound output.

This was tested with Mixxx 1.10.0-beta1 x64 on ubuntu Maverick

Is there a way to check if a device is available before trying to use it?

Terminal output:

Debug: [Main]: SoundManager::setupDevices()
Debug: [Main]: SoundDevicePortAudio::open() "9, pulse"
Debug: [Main]: framesPerBuffer: 1024
Debug: [Main]: Requested sample rate: 48000 Hz, latency: 21.3333 ms
Debug: [Main]: Output channels: 2 | Input channels: 0
Debug: [Main]: Opening stream with id 9
Debug: [Main]: Opened PortAudio stream successfully... starting
Debug: [Main]: Dynamically loaded PortAudio library
Debug: [Main]: PortAudio: Started stream successfully
Debug: [Main]: Actual sample rate: 48000 Hz, latency: 64 ms
Debug: [Main]: SoundDevicePortAudio::open() "0, HDA Intel: STAC92xx Analog (hw:0,0)"
Debug: [Main]: framesPerBuffer: 1024
Debug: [Main]: Requested sample rate: 48000 Hz, latency: 21.3333 ms
Debug: [Main]: Output channels: 0 | Input channels: 1
Debug: [Main]: Opening stream with id 0
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1026
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1184
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1428
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2100
Warning: [Main]: Error opening stream: Device unavailable

RJ Ryan (rryan) on 2011-12-04
Changed in mixxx:
importance: Undecided → High
milestone: none → 1.10.0
RJ Ryan (rryan) on 2011-12-25
Changed in mixxx:
milestone: 1.10.0 → 1.10.1
Download full text (3.1 KiB)

Checking for device availability before actually acquiring a stream
would just create a race condition. The usual advice is to not mess
with the sound preferences unless you're willing to have a disruption
in output (at least this is better than it used to be, when any
preference change caused the streams to be restarted).

I'm tempted to mark this as wontfix as per above, but it is something
that could be fixed (we could attempt to more precisely open and close
streams, maybe) with a good amount of effort. Although even then if
you were trying to add a mic input on a card that was outputting,
you'd get a disruption in audio.

On Sat, Dec 24, 2011 at 9:50 PM, RJ Ryan <email address hidden> wrote:
> ** Changed in: mixxx
>    Milestone: 1.10.0 => 1.10.1
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/897274
>
> Title:
>  music stops when trying to configure microphone
>
> Status in Mixxx:
>  New
>
> Bug description:
>  Mixxx Preferences offers to select HDA Intel: STAC92xx Analog (hw:0,0) for microphone settings. (beside of "Keine" "pulse" and "default").
>  When I select "HDA ..." Mixxx Stops playing and a pop-up appears
>  "Fehler beim Öffnen von Audio-Gerät "HDA ..." Device unavailable.
>
>  I can make Mixxx playing again if I reconfigure sound output.
>
>  This was tested with Mixxx 1.10.0-beta1 x64 on ubuntu Maverick
>
>  Is there a way to check if a device is available before trying to use
>  it?
>
>  Terminal output:
>
>  Debug: [Main]: SoundManager::setupDevices()
>  Debug: [Main]: SoundDevicePortAudio::open() "9, pulse"
>  Debug: [Main]: framesPerBuffer: 1024
>  Debug: [Main]: Requested sample rate:  48000 Hz, latency: 21.3333 ms
>  Debug: [Main]: Output channels: 2 | Input channels: 0
>  Debug: [Main]: Opening stream with id 9
>  Debug: [Main]: Opened PortAudio stream successfully... starting
>  Debug: [Main]: Dynamically loaded PortAudio library
>  Debug: [Main]: PortAudio: Started stream successfully
>  Debug: [Main]:    Actual sample rate:  48000 Hz, latency: 64 ms
>  Debug: [Main]: SoundDevicePortAudio::open() "0, HDA Intel: STAC92xx Analog (hw:0,0)"
>  Debug: [Main]: framesPerBuffer: 1024
>  Debug: [Main]: Requested sample rate:  48000 Hz, latency: 21.3333 ms
>  Debug: [Main]: Output channels: 0 | Input channels: 1
>  Debug: [Main]: Opening stream with id 0
>  Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1026
>  Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1184
>  Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1428
>  Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2100
>  Warning: [Main]: Error opening stream: Device unavailable
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/897...

Read more...

RJ Ryan (rryan) wrote :

Moving out of 1.10.1 milestone since I don't think we're going to fix it until some future work on SoundManager can be done.

tags: added: microphone soundmanager
Changed in mixxx:
milestone: 1.10.1 → none
status: New → Confirmed
tags: removed: soundmanager
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers