music stops when trying to configure microphone
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:
Debug: [Main]: SoundDevicePort
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]: SoundDevicePort
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/
Expression 'AlsaOpen( &alsaApi-
Expression 'PaAlsaStreamCo
Expression 'PaAlsaStream_
Warning: [Main]: Error opening stream: Device unavailable
Changed in mixxx: | |
importance: | Undecided → High |
milestone: | none → 1.10.0 |
Changed in mixxx: | |
milestone: | 1.10.0 → 1.10.1 |
tags: | removed: soundmanager |
tags: | added: portaudio |
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: /bugs.launchpad .net/bugs/ 897274 :setupDevices( ) Audio:: open() "9, pulse" Audio:: open() "0, HDA Intel: STAC92xx Analog (hw:0,0)" alsa/pa_ linux_alsa. c', line: 1026 >baseHostApiRep , params, streamDir, &self->pcm )' failed in 'src/hostapi/ alsa/pa_ linux_alsa. c', line: 1184 mponent_ Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/ alsa/pa_ linux_alsa. c', line: 1428 Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/ alsa/pa_ linux_alsa. c', line: 2100 /bugs.launchpad .net/mixxx/ +bug/897...
> ** 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:/
>
> 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:
> Debug: [Main]: SoundDevicePort
> 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]: SoundDevicePort
> 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/
> Expression 'AlsaOpen( &alsaApi-
> Expression 'PaAlsaStreamCo
> Expression 'PaAlsaStream_
> Warning: [Main]: Error opening stream: Device unavailable
>
> To manage notifications about this bug go to:
> https:/