Audaspace: Fix typo in speed of sound initialization value by lordloki (Jorge Bernal)
authorJörg Müller <nexyon@gmail.com>
Wed, 28 Jan 2015 23:20:01 +0000 (12:20 +1300)
committerJörg Müller <nexyon@gmail.com>
Wed, 28 Jan 2015 23:20:41 +0000 (12:20 +1300)
intern/audaspace/Python/AUD_PyAPI.cpp
intern/audaspace/intern/AUD_Sequencer.cpp
intern/audaspace/intern/AUD_SoftwareDevice.cpp

index b00289b3fae80de4e98a6e3e53922c72eea3df8e..dc019c1f245ea3fea95156a69babb6bc1f8701be 100644 (file)
@@ -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)
index 6c5e48c73f072788f12a07c3186779161c51c38f..ddcf97e2ea13384767bb15eba0b7095020510363 100644 (file)
@@ -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),
index 6ffa5e1fcaea88e5eef2275ba757bf85e4c253b3..c4277a6d02e1e9246f77b8310cab653ce5ac7c8c 100644 (file)
@@ -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;