[haiku-bugs] Re: [Haiku] #9438: Mixer not resampling very well

  • From: "jua" <trac@xxxxxxxxxxxx>
  • Date: Wed, 10 Feb 2016 00:55:21 -0000

#9438: Mixer not resampling very well
-----------------------------------+----------------------------
   Reporter:  Pete                 |      Owner:  nobody
       Type:  bug                  |     Status:  reopened
   Priority:  normal               |  Milestone:  R1
  Component:  Add-Ons/Media/Mixer  |    Version:  R1/Development
 Resolution:                       |   Keywords:
 Blocked By:                       |   Blocking:  9704
Has a Patch:  0                    |   Platform:  All
-----------------------------------+----------------------------

Comment (by jua):

but most audio apps (not only Haiku ones) out there are expecting float
 to be the native format

 I guess you mean DAWs and such, which support complex signal processing
 chains, so that they indeed use float/double/etc formats internally to
 avoid unnecessary losses along the chain. That's most certainly useful.

 However, an even more common audio application is playback: play an
 mp3/wav/flac/etc file from disk. In that case, the samples will generally
 be integer-based. And as said on the ML, sound cards expect integers too.
 If you introduce a conversion to float and back to int anywhere between
 the file and the sound card, you degrade the playback quality. Sure, most
 people won't care (enthusiasts do). But since unnecessary conversions are,
 well, unnecessary, and easily avoided, I think we should not add
 preventable signal degradation. (Assuming the case that no resampling is
 needed here.)


we can still add a field in the mixer settings to change the internal
 format to something different than float

 Being able to just connect any format to the mixer and make it
 automatically choose the best is a simpler (for the user!) and nicer
 solution. It would be annoying for users to have to switch this back and
 forth.

--
Ticket URL: <https://dev.haiku-os.org/ticket/9438#comment:20>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: