aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-29 19:48:18 -0800
committerChris Robinson <[email protected]>2010-11-29 19:48:18 -0800
commit0cf32e29465830e7d79eb3d40bb85e328d43625a (patch)
tree6c54363145fbb3a84eb0ebef99a56460a2292da6 /OpenAL32/alSource.c
parent693ab4d8bc34cdc5a394eca45b2648f21613c917 (diff)
Reorder some parameters for consistency
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 1f0594b2..837d6b95 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1953,7 +1953,7 @@ static ALboolean ApplyOffset(ALsource *Source)
// SW Mixer Positions are in Samples
Source->position = (lByteOffset - lTotalBufferSize) /
- FrameSizeFromFmt(Buffer->FmtType, Buffer->FmtChannels);
+ FrameSizeFromFmt(Buffer->FmtChannels, Buffer->FmtType);
return AL_TRUE;
}
@@ -2014,17 +2014,17 @@ static ALint GetByteOffset(ALsource *Source)
}
else
ByteOffset /= FrameSizeFromSrcFmt(Buffer->OriginalChannels, Buffer->OriginalType);
- ByteOffset *= FrameSizeFromFmt(Buffer->FmtType, Buffer->FmtChannels);
+ ByteOffset *= FrameSizeFromFmt(Buffer->FmtChannels, Buffer->FmtType);
break;
case AL_SAMPLE_OFFSET:
- ByteOffset = Source->lOffset * FrameSizeFromFmt(Buffer->FmtType, Buffer->FmtChannels);
+ ByteOffset = Source->lOffset * FrameSizeFromFmt(Buffer->FmtChannels, Buffer->FmtType);
break;
case AL_SEC_OFFSET:
// Note - lOffset is internally stored as Milliseconds
ByteOffset = (ALint)(Source->lOffset / 1000.0 * Buffer->Frequency);
- ByteOffset *= FrameSizeFromFmt(Buffer->FmtType, Buffer->FmtChannels);
+ ByteOffset *= FrameSizeFromFmt(Buffer->FmtChannels, Buffer->FmtType);
break;
}
// Clear Offset