aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index 6a749256..5b30461e 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -1288,6 +1288,8 @@ static void Convert_##T(T *dst, const ALvoid *src, enum SrcFmtType srcType, \
case SrcFmtMulaw: \
Convert_##T##_ALmulaw(dst, src, len); \
break; \
+ case SrcFmtIMA4: \
+ break; /* not handled here */ \
} \
}
@@ -1396,6 +1398,7 @@ ALuint BytesFromSrcFmt(enum SrcFmtType type)
case SrcFmtFloat: return sizeof(ALfloat);
case SrcFmtDouble: return sizeof(ALdouble);
case SrcFmtMulaw: return sizeof(ALubyte);
+ case SrcFmtIMA4: break; /* not handled here */
}
return 0;
}
@@ -1434,6 +1437,10 @@ void DecomposeInputFormat(ALenum format, enum SrcFmtChannels *chans,
*chans = SrcFmtMono;
*type = SrcFmtDouble;
break;
+ case AL_FORMAT_MONO_IMA4:
+ *chans = SrcFmtMono;
+ *type = SrcFmtIMA4;
+ break;
case AL_FORMAT_STEREO8:
*chans = SrcFmtStereo;
*type = SrcFmtUByte;
@@ -1450,6 +1457,10 @@ void DecomposeInputFormat(ALenum format, enum SrcFmtChannels *chans,
*chans = SrcFmtStereo;
*type = SrcFmtDouble;
break;
+ case AL_FORMAT_STEREO_IMA4:
+ *chans = SrcFmtStereo;
+ *type = SrcFmtIMA4;
+ break;
case AL_FORMAT_QUAD8_LOKI:
case AL_FORMAT_QUAD8:
*chans = SrcFmtQuad;