mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 04:19:00 +00:00
(TEST) Try to fix OAL audio problems
This commit is contained in:
parent
6729de49b1
commit
19cc6fafe0
1 changed files with 2 additions and 2 deletions
|
@ -67,13 +67,13 @@ public:
|
|||
void Seek(uint32 milliseconds)
|
||||
{
|
||||
if ( !IsOpened() ) return;
|
||||
sf_seek(m_pfSound, ms2samples(milliseconds), SF_SEEK_SET);
|
||||
sf_seek(m_pfSound, ms2samples(milliseconds) * (float)GetChannels(), SF_SEEK_SET);
|
||||
}
|
||||
|
||||
uint32 Tell()
|
||||
{
|
||||
if ( !IsOpened() ) return 0;
|
||||
return samples2ms(sf_seek(m_pfSound, 0, SF_SEEK_CUR));
|
||||
return samples2ms(sf_seek(m_pfSound, 0, SF_SEEK_CUR)) / (float)GetChannels();
|
||||
}
|
||||
|
||||
uint32 Decode(void *buffer)
|
||||
|
|
Loading…
Reference in a new issue