aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alu.h
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/Include/alu.h')
-rw-r--r--OpenAL32/Include/alu.h4
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)
{