summaryrefslogtreecommitdiffstats
path: root/src/audio/oal/stream.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-05 12:59:40 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-05 13:23:12 +0200
commit1a0b71bd47fc181ea7e8042e0faa35eb7f94cac8 (patch)
treefa290840a56f7a903a38881f2cd1efccb63a186f /src/audio/oal/stream.h
parentMerge pull request #738 from erorcun/master (diff)
downloadre3-1a0b71bd47fc181ea7e8042e0faa35eb7f94cac8.tar
re3-1a0b71bd47fc181ea7e8042e0faa35eb7f94cac8.tar.gz
re3-1a0b71bd47fc181ea7e8042e0faa35eb7f94cac8.tar.bz2
re3-1a0b71bd47fc181ea7e8042e0faa35eb7f94cac8.tar.lz
re3-1a0b71bd47fc181ea7e8042e0faa35eb7f94cac8.tar.xz
re3-1a0b71bd47fc181ea7e8042e0faa35eb7f94cac8.tar.zst
re3-1a0b71bd47fc181ea7e8042e0faa35eb7f94cac8.zip
Diffstat (limited to 'src/audio/oal/stream.h')
-rw-r--r--src/audio/oal/stream.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/oal/stream.h b/src/audio/oal/stream.h
index 456c080a..2476abcc 100644
--- a/src/audio/oal/stream.h
+++ b/src/audio/oal/stream.h
@@ -24,12 +24,12 @@ public:
uint32 ms2samples(uint32 ms)
{
- return float(ms) / 1000.0f * float(GetChannels()) * float(GetSampleRate());
+ return float(ms) / 1000.0f * float(GetSampleRate());
}
uint32 samples2ms(uint32 sm)
{
- return float(sm) * 1000.0f / float(GetChannels()) / float(GetSampleRate());
+ return float(sm) * 1000.0f / float(GetSampleRate());
}
uint32 GetBufferSamples()
@@ -108,4 +108,4 @@ public:
void ProviderTerm();
};
-#endif \ No newline at end of file
+#endif