Audio:
[blender.git] / intern / audaspace / intern / AUD_SequencerHandle.cpp
index c9cf46ccdc3f9457b722b702790a756c089f2568..87f5eb29d70dab3f8af43f99c3ce491d53fcbf09 100644 (file)
@@ -66,7 +66,7 @@ void AUD_SequencerHandle::stop()
                m_handle->stop();
 }
 
-void AUD_SequencerHandle::update(float position, float frame)
+void AUD_SequencerHandle::update(float position, float frame, float fps)
 {
        if(!m_handle.isNull())
        {
@@ -132,7 +132,7 @@ void AUD_SequencerHandle::update(float position, float frame)
                m_3dhandle->setSourceLocation(v);
                m_entry->m_location.read(frame + 1, v2.get());
                v2 -= v;
-               m_3dhandle->setSourceVelocity(v2);
+               m_3dhandle->setSourceVelocity(v2 * fps);
 
                if(m_entry->m_muted)
                        m_handle->setVolume(0);