diff options
author | Chris Robinson <[email protected]> | 2010-11-29 19:48:18 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-29 19:48:18 -0800 |
commit | 0cf32e29465830e7d79eb3d40bb85e328d43625a (patch) | |
tree | 6c54363145fbb3a84eb0ebef99a56460a2292da6 /OpenAL32/Include | |
parent | 693ab4d8bc34cdc5a394eca45b2648f21613c917 (diff) |
Reorder some parameters for consistency
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alBuffer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h index 0bfd9eff..1007e4d7 100644 --- a/OpenAL32/Include/alBuffer.h +++ b/OpenAL32/Include/alBuffer.h @@ -34,10 +34,10 @@ void DecomposeInputFormat(ALenum format, enum SrcFmtChannels *chans, enum SrcFmtType *type); ALuint BytesFromSrcFmt(enum SrcFmtType type); ALuint ChannelsFromSrcFmt(enum SrcFmtChannels chans); -static __inline ALuint FrameSizeFromSrcFmt(enum SrcFmtType type, - enum SrcFmtChannels chans) +static __inline ALuint FrameSizeFromSrcFmt(enum SrcFmtChannels chans, + enum SrcFmtType type) { - return BytesFromSrcFmt(type) * ChannelsFromSrcFmt(chans); + return ChannelsFromSrcFmt(chans) * BytesFromSrcFmt(type); } @@ -60,9 +60,9 @@ enum FmtChannels { void DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType *type); ALuint BytesFromFmt(enum FmtType type); ALuint ChannelsFromFmt(enum FmtChannels chans); -static __inline ALuint FrameSizeFromFmt(enum FmtType type, enum FmtChannels chans) +static __inline ALuint FrameSizeFromFmt(enum FmtChannels chans, enum FmtType type) { - return BytesFromFmt(type) * ChannelsFromFmt(chans); + return ChannelsFromFmt(chans) * BytesFromFmt(type); } |