summaryrefslogtreecommitdiffstats
path: root/src/audio/oal
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-10-26 22:40:12 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-10-26 22:40:12 +0100
commitba0c96c39ca0711a574b19d437548fcf6303e785 (patch)
treeb415217a2b623f9cdaa45bb3b6fcee27b51568bc /src/audio/oal
parentFixes to OpenAL (diff)
downloadre3-ba0c96c39ca0711a574b19d437548fcf6303e785.tar
re3-ba0c96c39ca0711a574b19d437548fcf6303e785.tar.gz
re3-ba0c96c39ca0711a574b19d437548fcf6303e785.tar.bz2
re3-ba0c96c39ca0711a574b19d437548fcf6303e785.tar.lz
re3-ba0c96c39ca0711a574b19d437548fcf6303e785.tar.xz
re3-ba0c96c39ca0711a574b19d437548fcf6303e785.tar.zst
re3-ba0c96c39ca0711a574b19d437548fcf6303e785.zip
Diffstat (limited to '')
-rw-r--r--src/audio/oal/stream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/oal/stream.cpp b/src/audio/oal/stream.cpp
index 6c6abf1a..3adb702a 100644
--- a/src/audio/oal/stream.cpp
+++ b/src/audio/oal/stream.cpp
@@ -67,13 +67,13 @@ public:
void Seek(uint32 milliseconds)
{
if ( !IsOpened() ) return;
- sf_seek(m_pfSound, ms2samples(milliseconds) * (float)GetChannels(), SF_SEEK_SET);
+ sf_seek(m_pfSound, ms2samples(milliseconds), SF_SEEK_SET);
}
uint32 Tell()
{
if ( !IsOpened() ) return 0;
- return samples2ms(sf_seek(m_pfSound, 0, SF_SEEK_CUR)) / (float)GetChannels();
+ return samples2ms(sf_seek(m_pfSound, 0, SF_SEEK_CUR));
}
uint32 Decode(void *buffer)