Set the listener properties correctly.
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Wed, 29 Dec 2004 01:27:09 +0000 (01:27 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Wed, 29 Dec 2004 01:27:09 +0000 (01:27 +0000)
source/blender/src/buttons_scene.c
source/blender/src/usiblender.c

index 4561b183b7db86dd97539841d633a39978df38e3..054c6eddddea83866e505e46f3b7b45e2b63be22 100644 (file)
@@ -285,7 +285,11 @@ static void sound_panel_listener(void)
 
        yco -= 30;
        uiDefButF(block, NUMSLI, B_SOUND_CHANGED, "Doppler: ",
-       xco,yco,195,24,&G.listener->dopplervelocity, 0.0, 10.0, 1.0, 0, "Use this for scaling the doppler effect");
+       xco,yco,195,24,&G.listener->dopplerfactor, 0.0, 10.0, 1.0, 0, "Use this for scaling the doppler effect");
+       
+       yco -=30;
+       uiDefButF(block, NUMSLI, B_SOUND_CHANGED, "Velocity: ",
+       xco,yco,195,24,&G.listener->dopplervelocity,0.0,10000.0, 1.0,0, "Sets the propagation speed of sound");
 
        
 }
index 43fd434ebf20888b975bbdd8c8eaa3ac94559eeb..4c00e2e8fa5108a887156c04e93cc1d407798c0f 100644 (file)
@@ -557,7 +557,7 @@ static void sound_init_listener(void)
        G.listener = MEM_callocN(sizeof(bSoundListener), "soundlistener");
        G.listener->gain = 1.0;
        G.listener->dopplerfactor = 1.0;
-       G.listener->dopplervelocity = 1.0;
+       G.listener->dopplervelocity = 340.29f;
 }
 
 void BIF_init(void)