aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alBuffer.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-29 20:34:33 -0800
committerChris Robinson <[email protected]>2010-11-29 20:34:33 -0800
commit55262bc6e9767d7e112fc3870aadf01e2153c84b (patch)
tree07d36c1c9273657beeea21f9760f790c27c43352 /OpenAL32/Include/alBuffer.h
parent51ed22afb9ed0ac3a379432f2e457253e8a533ac (diff)
Make the decompose functions return false when given an unhandled format
Diffstat (limited to 'OpenAL32/Include/alBuffer.h')
-rw-r--r--OpenAL32/Include/alBuffer.h6
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)