[haiku-bugs] Re: [Haiku] #1351: aliasing is heared with playback 44.1kHz files on 48kHz system sample rate

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Sat, 09 Oct 2010 12:16:03 -0000

#1351: aliasing is heared with playback 44.1kHz files on 48kHz system sample 
rate
-----------------------------+----------------------------------------------
  Reporter:  nutela          |         Owner:  pulkomandy   
      Type:  bug             |        Status:  assigned     
  Priority:  normal          |     Milestone:  R1           
 Component:  Kits/Media Kit  |       Version:  R1/pre-alpha1
Resolution:                  |      Keywords:               
Blocked By:                  |   Has a Patch:  0            
  Platform:  x86             |      Blocking:               
-----------------------------+----------------------------------------------

Comment (by stippi):

 To stargatefan: The system works just fine in principle. Audio
 applications *can* do their own mixing and can have a single master
 output, if they so chose. Clockwerk and I think any other current
 BeOS/Haiku audio app is using such a setup today. There is nothing wrong
 with, and it's in fact required to have a global system mixer. And since
 sound cards have mostly one sound input, it's only logical to drive it in
 the highest frequency that the hardware allows (which is what Haiku
 currently does). Most movies use 48 kHz, most music is 44.1 kHz -- so what
 should one pick? In theory, the mixer could be improved to switch the
 audio hardware to the highest sampling rate of current mixer inputs. If
 there is only one input, use the sampling rate of that one. I don't think,
 however, that with a proper resampling implementation, it would make any
 practical difference. In fact it would just make the code more complicated
 and probably introduce audible hickups when there is already one mixer
 input playing and another one is added which causes a switch to a higher
 sampling rate.

 Really, fixing the resampling is all that needs to be done here.

 To pulkomandy: The Resamplers are already C++ objects which can hold
 arbitrary members. The same resampler object is used for a given
 channel/stream, so why not just implement what you propose? However I
 don't think that the audible artifacts are in fact caused by the problem
 you describe. It's just too obvious. I fully understand the problem, I
 just believe the effects should be more subtle. Something else is probably
 going on in addition to what you describe.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/1351#comment:15>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: