music stops when trying to configure microphone

Bug #897274 reported by Daniel Schürmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Confirmed
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 Skerry-Ryan (rryan)
Changed in mixxx:
importance: Undecided → High
milestone: none → 1.10.0
RJ Skerry-Ryan (rryan)
Changed in mixxx:
milestone: 1.10.0 → 1.10.1
Revision history for this message
William Good (bkgood) wrote : Re: [Bug 897274] Re: music stops when trying to configure microphone
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...

Revision history for this message
RJ Skerry-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
tags: added: portaudio
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/6148

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.