default Sample Rate to PA default (most likely 44100 Hz)

Bug #1087002 reported by Daniel Schürmann on 2012-12-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Low
Daniel Schürmann

Bug Description

I wonder why Mixxx has 48000 Hz sample rate by default.
All of my tracks are at 44100 Hz. (Audio CD)
(Likely such as the mayority of Mixxx users)

What is the reason for 48000 Hz default?

It was an arbitrary decision a long time ago. It's true that doing
samplerate conversions (e.g. from 44.1 -> 48) means that we do more CPU
work and it decreases audio quality (though the effect on both CPU and
quality are likely small).

On Wed, Dec 5, 2012 at 4:26 PM, Daniel Schürmann <<email address hidden>
> wrote:

> Public bug reported:
>
> I wonder why Mixxx has 48000 Hz sample rate by default.
> All of my tracks are at 44100 Hz. (Audio CD)
> (Likely such as the mayority of Mixxx users)
>
> What is the reason for 48000 Hz default?
>
> ** Affects: mixxx
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/1087002
>
> Title:
> default to 44100 Hz
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/1087002/+subscriptions
>

Good question. I also added special code which causes mixxx to do no sound-stretching on audio material when it matches the sample rate, so in the jukebox situation (tracks always playing at 1.0 speed), 44.1 might be a better choice than 48 for sound quality purposes.

> What is the reason for 48000 Hz default?

Some cheap sound cards support only this rate natively so for users with such cards, Mixxx would fail to work on first run.

...if the default was anything else. Ideally, Mixxx should sequence through all of the available sample rates if the last-selected one results in being unable to open the sound card.

Daniel Schürmann (daschuer) wrote :

http://www.portaudio.com/docs/proposals/002-ImproveDeviceFormatsQueryInterface.html

This explains how Pa thinks about it.

IMO, we should rely on PA default sample rate which will be 44100 Hz in most cases.

Changed in mixxx:
status: New → In Progress
assignee: nobody → Daniel Schürmann (daschuer)
Daniel Schürmann (daschuer) wrote :

Here is a patch, picks the PA default sample rate as Mixxx default.
I would like to commit this to 1.11 since it effects (only) new users.

jus (jus) wrote :

I can't comment on the technical aspects discussed here, but on support request we got in the forums and the feedback form.

Often new user on (mostly) Windows complain that a) Mixxx did not load any tracks or b) plays tracks to slow. Manually selecting a valid sound device in the preferences and setting the sample rate to 44100 Hz works in most of the cases.

One could argue that we never heard from the users with cheap 48k only sound cards (see #3) because they have no issues, but as long as we dont have any numbers it is speculation.

One aspect that we should not overlook in this context is that none of our competitors (afaik) default to 48k. Here we can probably trust the majority, also because some of them are hardware makers too.

+1 for defaulting to 44.1k

summary: - default to 44100 Hz
+ default Sample Rate to PA default (most likely 44100 Hz)
Daniel Schürmann (daschuer) wrote :

Just changed the Bug Title.
The patch dos not explicit request 44100 Hz, but it try the PA default first, which is most likely 44100 Hz if it is possible.
If 44100 is not possible PA will perform the re-sampling or pick a different default.
What actually happen is untested.

Daniel Schürmann (daschuer) wrote :

Commited to lp:mixxx/1.11 #3675

Changed in mixxx:
status: In Progress → Fix Committed
jus (jus) on 2013-01-26
Changed in mixxx:
importance: Undecided → Low
milestone: none → 1.11.0

+1 to relying on PortAudio for the sample rate. The patch looks good to me.

On Sat, Jan 5, 2013 at 4:01 AM, jus <email address hidden> wrote:

> I can't comment on the technical aspects discussed here, but on support
> request we got in the forums and the feedback form.
>
> Often new user on (mostly) Windows complain that a) Mixxx did not load
> any tracks or b) plays tracks to slow. Manually selecting a valid sound
> device in the preferences and setting the sample rate to 44100 Hz works
> in most of the cases.
>
> One could argue that we never heard from the users with cheap 48k only
> sound cards (see #3) because they have no issues, but as long as we dont
> have any numbers it is speculation.
>
> One aspect that we should not overlook in this context is that none of
> our competitors (afaik) default to 48k. Here we can probably trust the
> majority, also because some of them are hardware makers too.
>
> +1 for defaulting to 44.1k
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/1087002
>
> Title:
> default to 44100 Hz
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/1087002/+subscriptions
>

RJ Skerry-Ryan (rryan) on 2013-05-09
Changed in mixxx:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers