[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender  branches/soc-2007-hcube/intern/ tinySND/intern/SND_FXMixer.cpp: Added mix function impementation.
csaba.hruska at gmail.com
Fri Jun 22 19:19:08 CEST 2007
ok thanks for reporting, i know that is a bad implemetation, i'll fix it.
2007/6/22, Alexander Ewering <blender at instinctive.de>:
> On Fri, 22 Jun 2007, Csaba Hruska wrote:
> > + mixFactor = mGain / ((float)sndNum);
> > + mBuffer[ n ] += mixFactor * buffer;
> I only quickly skimmed through this, and I guess I'm wrong with my
> interpretation, but anyway:
> >From this code, it looks as if the mixing volume of individual sounds is
> dependant on the total number of concurrent sounds that are to be mixed at
> any point in time. This would of course be physically wrong as each
> additional sound source would introduce "compression" to the overall
> mix. I guess this 'mixFactor' is compensated for elsewhere?
> Alexander Ewering
> [ i n s t i n c t i v e . ] instinctive mediaworks
> Zur Waldeshoehe 6 Tel.: 02393-220558
> 59846 Sundern Fax: 02393-220559
> Germany xx-mail: xx-mail.com/instinctive
> Bf-committers mailing list
> Bf-committers at blender.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Bf-committers