aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-09-01 07:37:07 -0700
committerChris Robinson <[email protected]>2020-09-01 07:37:07 -0700
commit1968136c98e062009904fca20e48ea847f03fefa (patch)
treee741cffe7cb46358bc36dbb73ccf8eeea2e40190
parenteeba1a385c466e1c25468eb2ac23b41a49e4a978 (diff)
Add an in-progress extension string for convolution reverb
-rw-r--r--alc/alc.cpp3
-rw-r--r--examples/alconvolve.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index a40a4d7d..c74c1ad8 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -807,6 +807,8 @@ constexpr struct {
DECL(AL_BUFFER_CALLBACK_USER_PARAM_SOFT),
DECL(AL_UNPACK_AMBISONIC_ORDER_SOFT),
+
+ DECL(AL_EFFECT_CONVOLUTION_REVERB_SOFT),
};
#undef DECL
@@ -854,6 +856,7 @@ constexpr ALchar alExtList[] =
"AL_SOFTX_bformat_hoa "
"AL_SOFT_block_alignment "
"AL_SOFTX_callback_buffer "
+ "AL_SOFTX_convolution_reverb "
"AL_SOFT_deferred_updates "
"AL_SOFT_direct_channels "
"AL_SOFT_direct_channels_remix "
diff --git a/examples/alconvolve.c b/examples/alconvolve.c
index 77ef83bf..05804dbe 100644
--- a/examples/alconvolve.c
+++ b/examples/alconvolve.c
@@ -377,10 +377,10 @@ int main(int argc, char **argv)
if(InitAL(&argv, &argc) != 0)
return 1;
- if(!alcIsExtensionPresent(alcGetContextsDevice(alcGetCurrentContext()), "ALC_EXT_EFX"))
+ if(!alIsExtensionPresent("AL_SOFTX_convolution_reverb"))
{
CloseAL();
- fprintf(stderr, "Error: EFX not supported\n");
+ fprintf(stderr, "Error: Convolution revern not supported\n");
return 1;
}