[Bf-committers] Soundsystem mess

Kester Maddock Christopher.Maddock.1 at uni.massey.ac.nz
Thu Dec 30 02:44:07 CET 2004


I uncommented all that in response to a forum post.

There are some changes to buttons_scene.c & usiblender.c as well.

1. glob = G.  I just #include <BKE_globals.h> and use that.
2. The doppler settings were wrong - dopplervelocity is the parameter in the 
Listener panel (settable from 0 - 10 m/s !!)  I switched that slider to set 
dopplerfactor, and added a slider for dopplervelocity. (Which defaults to 
340.29 - the value you get when you type speed of sound into google)
3. The listener settings are not saved into a blend file.  Not sure how this 
is supposed to work...

Kester

On Thursday 30 December 2004 13:46, Alexander Ewering wrote:
> I've found the following in
> ./source/gameengine/Converter/BL_BlenderDataConversion.cpp:
>
>      // convert global sound stuff
>
>      /* XXX, glob is the very very wrong place for this
>       * to be, re-enable once the listener has been moved into
>       * the scene. */
> #if 0
>      SND_Scene* soundscene = kxscene->GetSoundScene();
>      SND_SoundListener* listener = soundscene->GetListener();
>      if (listener && glob->listener)
>      {
>          listener->SetDopplerFactor(glob->listener->dopplerfactor);
>          listener->SetDopplerVelocity(glob->listener->dopplervelocity);
>          listener->SetGain(glob->listener->gain);
>      }
> #endif
>
> This explains why the global Volume setting in the sound buttons doesn't
> work...
>
> What is glob, and why can't I find it? :)
>
> Getting global volume to work is really crucial... I've set the default
> volume of new sounds to 0.5 instead of 1.0, because you often end up
> wanting a sound louder than all the others, and instead of adjusting all
> sounds except one, you can then just make the one louder sound 1.0 :)
>
> But of course, it would be nice to be able to adjust the global mix level
> as well (i.e., the 'listener gain')...
>
> Is there any way to make this work, i.e. make blender set the listener
> gain to G.listener->gain ...
>
> | alexander ewering              instinctive mediaworks
> | ae[@]instinctive[.]de   http://www[.]instinctive[.]de
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers

-- 
"I have not the slightest confidence in 'spiritual manifestations.'"
-- Robert G. Ingersoll


More information about the Bf-committers mailing list