diff options
author | Chris Robinson <[email protected]> | 2010-11-29 20:34:33 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-29 20:34:33 -0800 |
commit | 55262bc6e9767d7e112fc3870aadf01e2153c84b (patch) | |
tree | 07d36c1c9273657beeea21f9760f790c27c43352 /OpenAL32/Include | |
parent | 51ed22afb9ed0ac3a379432f2e457253e8a533ac (diff) |
Make the decompose functions return false when given an unhandled format
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alBuffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
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) |