[Bf-blender-cvs] [d434815] master: Audaspace: Fix typo in speed of sound initialization value by lordloki (Jorge Bernal)

Jörg Müller noreply at git.blender.org
Thu Jan 29 00:20:59 CET 2015


Commit: d434815ff7c586f6e54af667e37c9d2d12726416
Author: Jörg Müller
Date:   Thu Jan 29 12:20:01 2015 +1300
Branches: master
https://developer.blender.org/rBd434815ff7c586f6e54af667e37c9d2d12726416

Audaspace: Fix typo in speed of sound initialization value by lordloki (Jorge Bernal)

===================================================================

M	intern/audaspace/Python/AUD_PyAPI.cpp
M	intern/audaspace/intern/AUD_Sequencer.cpp
M	intern/audaspace/intern/AUD_SoftwareDevice.cpp

===================================================================

diff --git a/intern/audaspace/Python/AUD_PyAPI.cpp b/intern/audaspace/Python/AUD_PyAPI.cpp
index b00289b..dc019c1 100644
--- a/intern/audaspace/Python/AUD_PyAPI.cpp
+++ b/intern/audaspace/Python/AUD_PyAPI.cpp
@@ -2588,7 +2588,7 @@ Device_set_listener_orientation(Device *self, PyObject *args, void* nothing)
 
 PyDoc_STRVAR(M_aud_Device_speed_of_sound_doc,
 			 "The speed of sound of the device.\n"
-			 "The speed of sound in air is typically 343 m/s.");
+			 "The speed of sound in air is typically 343.3 m/s.");
 
 static PyObject *
 Device_get_speed_of_sound(Device *self, void* nothing)
diff --git a/intern/audaspace/intern/AUD_Sequencer.cpp b/intern/audaspace/intern/AUD_Sequencer.cpp
index 6c5e48c..ddcf97e 100644
--- a/intern/audaspace/intern/AUD_Sequencer.cpp
+++ b/intern/audaspace/intern/AUD_Sequencer.cpp
@@ -39,7 +39,7 @@ AUD_Sequencer::AUD_Sequencer(AUD_Specs specs, float fps, bool muted) :
 	m_id(0),
 	m_muted(muted),
 	m_fps(fps),
-	m_speed_of_sound(434),
+	m_speed_of_sound(343.3f),
 	m_doppler_factor(1),
 	m_distance_model(AUD_DISTANCE_MODEL_INVERSE_CLAMPED),
 	m_volume(1, 1.0f),
diff --git a/intern/audaspace/intern/AUD_SoftwareDevice.cpp b/intern/audaspace/intern/AUD_SoftwareDevice.cpp
index 6ffa5e1..c4277a6 100644
--- a/intern/audaspace/intern/AUD_SoftwareDevice.cpp
+++ b/intern/audaspace/intern/AUD_SoftwareDevice.cpp
@@ -705,7 +705,7 @@ void AUD_SoftwareDevice::create()
 	m_playback = false;
 	m_volume = 1.0f;
 	m_mixer = boost::shared_ptr<AUD_Mixer>(new AUD_Mixer(m_specs));
-	m_speed_of_sound = 343.0f;
+	m_speed_of_sound = 343.3f;
 	m_doppler_factor = 1.0f;
 	m_distance_model = AUD_DISTANCE_MODEL_INVERSE_CLAMPED;
 	m_flags = 0;




More information about the Bf-blender-cvs mailing list