aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-02-14 00:00:46 -0800
committerChris Robinson <[email protected]>2023-02-14 02:32:07 -0800
commitd0c28c652f10856f3f1eadbbe8f362be6224355d (patch)
tree93fc754d14acb8f89f595e62a1672e3be1a05354 /alc/effects
parentc10df8ab545320e636404a8ed5f81b2c08c565b3 (diff)
Support IMA4 ADPCM as a mixing voice format
Diffstat (limited to 'alc/effects')
-rw-r--r--alc/effects/convolution.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/alc/effects/convolution.cpp b/alc/effects/convolution.cpp
index e88fb0d0..1c5c3691 100644
--- a/alc/effects/convolution.cpp
+++ b/alc/effects/convolution.cpp
@@ -84,6 +84,10 @@ void LoadSamples(float *RESTRICT dst, const al::byte *src, const size_t srcstep,
HANDLE_FMT(FmtDouble);
HANDLE_FMT(FmtMulaw);
HANDLE_FMT(FmtAlaw);
+ /* FIXME: Handle ADPCM decoding here. */
+ case FmtIMA4:
+ std::fill_n(dst, samples, 0.0f);
+ break;
}
#undef HANDLE_FMT
}