aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2024-08-11 15:41:19 +0000
committerDaniil Cherednik <dan.cherednik@gmail.com>2024-08-11 15:41:19 +0000
commitdc14436986b7b1561ca5a521c3b8b5a95c6b052c (patch)
treed1e8e4601edc9a3359cf920978611d29371d41f0
parent41705edc6d36ad013cbcb171d53891f3c33764d8 (diff)
downloadlibgha-dc14436986b7b1561ca5a521c3b8b5a95c6b052c.tar.gz
allow to get generated pcm signal
-rw-r--r--include/libgha.h2
-rw-r--r--src/gha.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/libgha.h b/include/libgha.h
index 5ff09c8..7bf6e12 100644
--- a/include/libgha.h
+++ b/include/libgha.h
@@ -91,6 +91,8 @@ int gha_adjust_info(const FLOAT* pcm, struct gha_info* info, size_t k, gha_ctx_t
*/
void gha_set_user_resuidal_cb(void (*cb)(FLOAT* resuidal, size_t size, void* user_ctx), void* user_ctx, gha_ctx_t ctx);
+const FLOAT* gha_get_analyzed(gha_ctx_t ctx);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
diff --git a/src/gha.c b/src/gha.c
index d09fd39..d0b6f77 100644
--- a/src/gha.c
+++ b/src/gha.c
@@ -407,3 +407,8 @@ int gha_adjust_info(const FLOAT* pcm, struct gha_info* info, size_t k, gha_ctx_t
return rv;
}
+
+const FLOAT* gha_get_analyzed(gha_ctx_t ctx)
+{
+ return ctx->tmp_buf;
+}