From 42583f73412584fcca48932c7141aa8d2f7fdc72 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 20 Mar 2024 17:47:31 -0500 Subject: [PATCH] speed up IMA ADPCM sample encoding --- src/engine/sample.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/sample.cpp b/src/engine/sample.cpp index 17340f551..eca9da9cd 100644 --- a/src/engine/sample.cpp +++ b/src/engine/sample.cpp @@ -1468,7 +1468,7 @@ void DivSample::render(unsigned int formatMask) { delta[0]=0; delta[1]=0; - void* codec=adpcm_create_context(1,4,NOISE_SHAPING_OFF,delta); + void* codec=adpcm_create_context(1,1,NOISE_SHAPING_OFF,delta); if (codec==NULL) { logE("oh no IMA encoder could not be created!"); } else {