fix GetTrackPosition precision

pull/1/head
cosmonaut 2021-11-03 16:35:24 -07:00
parent 267b4a5873
commit 90d71b2c0d
1 changed files with 1 additions and 1 deletions

View File

@ -1404,7 +1404,7 @@ double FAudioGMS_SoundInstance_GetTrackPositionInSeconds(double soundInstanceID)
if (instance != NULL) if (instance != NULL)
{ {
return FAudioGMS_INTERNAL_SoundInstance_GetTrackPositionInSampleFrames(instance) / instance->format.nSamplesPerSec; return (double)FAudioGMS_INTERNAL_SoundInstance_GetTrackPositionInSampleFrames(instance) / instance->format.nSamplesPerSec;
} }
else else
{ {