From 37190b2cafdec52a23034194a3e63d8d33bdc544 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 24 May 2010 21:51:30 -0700 Subject: Add a function to get the frame size from a format --- OpenAL32/Include/alu.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenAL32/Include/alu.h') 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) { -- cgit v1.2.3