diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-08-11 15:41:19 +0000 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-08-11 15:41:19 +0000 |
commit | dc14436986b7b1561ca5a521c3b8b5a95c6b052c (patch) | |
tree | d1e8e4601edc9a3359cf920978611d29371d41f0 | |
parent | 41705edc6d36ad013cbcb171d53891f3c33764d8 (diff) | |
download | libgha-dc14436986b7b1561ca5a521c3b8b5a95c6b052c.tar.gz |
allow to get generated pcm signal
-rw-r--r-- | include/libgha.h | 2 | ||||
-rw-r--r-- | src/gha.c | 5 |
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 */ @@ -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; +} |