Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

music stops when trying to configure microphone #6148

Open
mixxxbot opened this issue Aug 22, 2022 · 2 comments
Open

music stops when trying to configure microphone #6148

mixxxbot opened this issue Aug 22, 2022 · 2 comments

Comments

@mixxxbot
Copy link
Collaborator

Reported by: daschuer
Date: 2011-11-28T15:55:38Z
Status: Confirmed
Importance: High
Launchpad Issue: lp897274
Tags: microphone, portaudio


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
@mixxxbot
Copy link
Collaborator Author

Commented by: bkgood
Date: 2012-01-04T05:03:19Z


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 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/897274/+subscriptions

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2012-05-12T22:30:40Z


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.

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant