Auto-detect sound card sample rate

Bug #700577 reported by Sean M. Pappalardo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Wishlist
William Good
1.8
Fix Released
Wishlist
Sean M. Pappalardo

Bug Description

Most sound cards support both 44100Hz and 48000Hz but some only support one of those, and we've been seeing a number of users seeing the "sound device could not be opened" error due to this problem, and it's not obvious that they should try another sample rate.

I propose, when Mixxx can't open a sound card that's set to 44100 or 48000, to first try the other rate, then if still unsuccessful, give the error dialog. (Don't do this if the prefs are set to 96000 or 32000 or anything else since that means the user set them that way at some point. But this could still show up if they add a new card.) The error dialog should in any case read "Do all of your sound cards support your selected sample rate (<rate>Hz)?"

Revision history for this message
Sean M. Pappalardo (pegasus-renegadetech) wrote :

Of course, maybe a better option is to just display to the user WHY a particular device can't be opened, since PortAudio will tell you (in fact we qDebug it already.)

Revision history for this message
William Good (bkgood) wrote :

1.9 already does this, see screen shot.

Changed in mixxx:
assignee: nobody → Bill Good (bkgood)
milestone: none → 1.9.0
status: Confirmed → Fix Committed
Revision history for this message
William Good (bkgood) wrote :

Well 1.9 doesn't try switching the sample rate but the error is plenty clear and switching a sample rate behind a user's back is sneaky behavior in my opinion. Some of our users may be of the type needed their hands held in this situation but for the users that truly care what their sample rate is, this would be utterly broken functionality. The error message should steer most anyone in the right direction.

Revision history for this message
Sean M. Pappalardo (pegasus-renegadetech) wrote :

Ah ok then, that's perfect.

I also just committed a change to the 1.8 branch suggesting to check that all sound cards support the selected sample rate.

Revision history for this message
Albert Santoni (gamegod) wrote : Re: [Bug 700577] Re: Auto-detect sound card sample rate

FYI there used to be this terrible ALSA nonsense that would stop you
from rapidly polling soundcards to determine their samplerates. The
PortAudio workaround was to sleep for a bit in between polls, but then
it ended up making Mixxx take forever to start or to reconfigure stuff
in the prefs. I had the code in there to enumerate samplerates in
Mixxx but I took it out for this reason (back in like 1.5).

If you didn't notice this already, then it's probably fixed.

On Sun, Jan 9, 2011 at 10:51 AM, Sean M. Pappalardo
<email address hidden> wrote:
> Ah ok then, that's perfect.
>
> I also just committed a change to the 1.8 branch suggesting to check
> that all sound cards support the selected sample rate.
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/700577
>
> Title:
>  Auto-detect sound card sample rate
>

RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
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/5748

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.