mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
This commit is contained in:
commit
cdb68f159c
1 changed files with 2 additions and 2 deletions
|
@ -1585,7 +1585,7 @@ FISoundChannel *OpenALSoundRenderer::StartSound(SoundHandle sfx, float vol, int
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if((chanflags&SNDF_ABSTIME))
|
if((chanflags&SNDF_ABSTIME))
|
||||||
alSourcef(source, AL_SEC_OFFSET, reuse_chan->StartTime.Lo/1000.f);
|
alSourcef(source, AL_SAMPLE_OFFSET, reuse_chan->StartTime.Lo);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
float offset = std::chrono::duration_cast<std::chrono::duration<float>>(
|
float offset = std::chrono::duration_cast<std::chrono::duration<float>>(
|
||||||
|
@ -1793,7 +1793,7 @@ FISoundChannel *OpenALSoundRenderer::StartSound3D(SoundHandle sfx, SoundListener
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if((chanflags&SNDF_ABSTIME))
|
if((chanflags&SNDF_ABSTIME))
|
||||||
alSourcef(source, AL_SEC_OFFSET, reuse_chan->StartTime.Lo/1000.f);
|
alSourcef(source, AL_SAMPLE_OFFSET, reuse_chan->StartTime.Lo);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
float offset = std::chrono::duration_cast<std::chrono::duration<float>>(
|
float offset = std::chrono::duration_cast<std::chrono::duration<float>>(
|
||||||
|
|
Loading…
Reference in a new issue