From 55262bc6e9767d7e112fc3870aadf01e2153c84b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 29 Nov 2010 20:34:33 -0800 Subject: Make the decompose functions return false when given an unhandled format --- OpenAL32/Include/alBuffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alBuffer.h b/OpenAL32/Include/alBuffer.h index 1007e4d7..904f2e4a 100644 --- a/OpenAL32/Include/alBuffer.h +++ b/OpenAL32/Include/alBuffer.h @@ -30,8 +30,8 @@ enum SrcFmtChannels { SrcFmtX71, /* AL_7POINT1 (WFX order) */ }; -void DecomposeInputFormat(ALenum format, enum SrcFmtChannels *chans, - enum SrcFmtType *type); +ALboolean DecomposeInputFormat(ALenum format, enum SrcFmtChannels *chans, + enum SrcFmtType *type); ALuint BytesFromSrcFmt(enum SrcFmtType type); ALuint ChannelsFromSrcFmt(enum SrcFmtChannels chans); static __inline ALuint FrameSizeFromSrcFmt(enum SrcFmtChannels chans, @@ -57,7 +57,7 @@ enum FmtChannels { FmtX71, }; -void DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType *type); +ALboolean DecomposeFormat(ALenum format, enum FmtChannels *chans, enum FmtType *type); ALuint BytesFromFmt(enum FmtType type); ALuint ChannelsFromFmt(enum FmtChannels chans); static __inline ALuint FrameSizeFromFmt(enum FmtChannels chans, enum FmtType type) -- cgit v1.2.3