Audio:
[blender.git] / intern / audaspace / intern / AUD_SequencerReader.cpp
index 0b8a400a97b464bdd6aa3a9bc88221e85e8aff27..c468de19580f9dce02031852480e9f2ad944cf56 100644 (file)
@@ -162,7 +162,7 @@ void AUD_SequencerReader::read(int& length, bool& eos, sample_t* buffer)
 
                for(AUD_HandleIterator it = m_handles.begin(); it != m_handles.end(); it++)
                {
-                       (*it)->update(time, frame);
+                       (*it)->update(time, frame, m_factory->m_fps);
                }
 
                m_factory->m_volume.read(frame, &volume);
@@ -174,7 +174,7 @@ void AUD_SequencerReader::read(int& length, bool& eos, sample_t* buffer)
                m_device.setListenerLocation(v);
                m_factory->m_location.read(frame + 1, v2.get());
                v2 -= v;
-               m_device.setListenerVelocity(v2);
+               m_device.setListenerVelocity(v2 * m_factory->m_fps);
 
                m_device.read(reinterpret_cast<data_t*>(buffer + specs.channels * pos), len);