diff options
author | Chris Robinson <[email protected]> | 2010-05-24 21:51:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-05-24 21:51:30 -0700 |
commit | 37190b2cafdec52a23034194a3e63d8d33bdc544 (patch) | |
tree | 99dada718dcb76d94223b62392f0181b5a3314ba /OpenAL32/Include/alu.h | |
parent | c6b948323ebc8632e0b763f090cdcd19255d0ac2 (diff) |
Add a function to get the frame size from a format
Diffstat (limited to 'OpenAL32/Include/alu.h')
-rw-r--r-- | OpenAL32/Include/alu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 57afe6c4..55ddbaf6 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -158,6 +158,10 @@ static __inline ALuint aluChannelsFromFormat(ALenum format) return 0; } } +static __inline ALuint aluFrameSizeFromFormat(ALenum format) +{ + return aluBytesFromFormat(format) * aluChannelsFromFormat(format); +} static __inline ALint aluCart2LUTpos(ALfloat re, ALfloat im) { |