Bug in OpenAL backend returning wrong playback position.
authorJoerg Mueller <nexyon@gmail.com>
Sun, 28 Feb 2010 08:53:08 +0000 (08:53 +0000)
committerJoerg Mueller <nexyon@gmail.com>
Sun, 28 Feb 2010 08:53:08 +0000 (08:53 +0000)
intern/audaspace/OpenAL/AUD_OpenALDevice.cpp

index 7ee8652f226839c880c46815a75faa97d2ee4bac..796764989ba22d58bae29b682d696a91a7694de0 100644 (file)
@@ -895,7 +895,7 @@ float AUD_OpenALDevice::getPosition(AUD_Handle* handle)
                {
                        AUD_Specs specs = h->reader->getSpecs();
                        position += (h->reader->getPosition() - m_buffersize *
-                                                                       AUD_OPENAL_CYCLE_BUFFERS / specs.channels) /
+                                                                       AUD_OPENAL_CYCLE_BUFFERS) /
                                           (float)specs.rate;
                }
        }