#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 Barrett):
In various parts of the bebook is stated that BeOS performs internal audio
manipulation in floating point format, but in particular this extract from
BSoundPlayer documentation is the most clear :
'''
By default, the audio format used by a BSoundPlayer is
BSoundPlayer::B_AUDIO_FLOAT, which is to say that the audio is in
floating-point format, where each sample ranges from -1.0 to 1.0. The
Media Kit uses floating-point audio internally, so using floating-point
audio whenever you can will improve your application's performance by
cutting down on format conversions. However, if you want to use another
format, you may do so by specifying a media_raw_audio_format when you
instantiate the BSoundPlayer object.
'''
So, my interpretation is that the mixer should do it's internal processing
representing everything in floating point audio. This give us at least two
advantages, we are allowed to use various algorithm implementations out
there and we easily allow audio users to don't incur into format
conversions before the audio reach the sound card. In that case, if the
user ensure that there are not nodes putting audio in a different format,
can give an adequate average between performances and flexibility.
--
Ticket URL: <https://dev.haiku-os.org/ticket/9438#comment:16>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.