diff options
author | Chris Robinson <[email protected]> | 2015-10-24 15:13:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-10-24 15:13:56 -0700 |
commit | 298fdb220d2fe13b2c12d842ad40f39d9cf70e51 (patch) | |
tree | b44b5625dd16c23f3144a3a933f9b0f839573dbe /OpenAL32/alSource.c | |
parent | 2a62b3853082169e665d5eee2121ff34cfe0abc1 (diff) |
Fix usage of modf
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 53e388e4..b8677539 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -3005,13 +3005,13 @@ static ALboolean GetSampleOffset(ALsource *Source, ALuint *offset, ALuint *frac) break; case AL_SAMPLE_OFFSET: - dbloff = modf(Source->Offset, &dblfrac); + dblfrac = modf(Source->Offset, &dbloff); *offset = (ALuint)mind(dbloff, UINT_MAX); *frac = (ALuint)mind(dblfrac*FRACTIONONE, FRACTIONONE-1.0); break; case AL_SEC_OFFSET: - dbloff = modf(Source->Offset*Buffer->Frequency, &dblfrac); + dblfrac = modf(Source->Offset*Buffer->Frequency, &dbloff); *offset = (ALuint)mind(dbloff, UINT_MAX); *frac = (ALuint)mind(dblfrac*FRACTIONONE, FRACTIONONE-1.0); break; |