summaryrefslogtreecommitdiff
path: root/src/til_stream.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-11-05 15:31:59 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-11-14 01:20:56 -0800
commit4c629d77d9bd67e9861f578d89957b3cf1472aa8 (patch)
tree20246b8d0e65d4c8a04e4126df7d0e7f29c106f6 /src/til_stream.h
parentb22df31feeb7e695faabecfd7cc6fdd24609b0e1 (diff)
til_stream: add til_audio_context_t to til_stream_t
Preliminary means of making the audio context available to modules.
Diffstat (limited to 'src/til_stream.h')
-rw-r--r--src/til_stream.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/til_stream.h b/src/til_stream.h
index e7b92e6..d72b139 100644
--- a/src/til_stream.h
+++ b/src/til_stream.h
@@ -24,6 +24,7 @@
#include "til_module_context.h"
#include "til_setup.h"
+typedef struct til_audio_context_t til_audio_context_t;
typedef struct til_stream_t til_stream_t;
typedef struct til_stream_module_context_t til_stream_module_context_t;
typedef struct til_stream_pipe_t til_stream_pipe_t;
@@ -44,13 +45,14 @@ typedef struct til_stream_hooks_t {
void (*pipe_dtor)(void *context, til_stream_t *stream, const void *owner, const void *owner_foo, const char *parent_path, const til_tap_t *tap); /* called immediately *after* pipe "destroyed" (withdrawn from stream) */
} til_stream_hooks_t;
-til_stream_t * til_stream_new(void);
+til_stream_t * til_stream_new(til_audio_context_t *audio_context);
til_stream_t * til_stream_free(til_stream_t *stream);
void til_stream_end(til_stream_t *stream);
int til_stream_active(til_stream_t *stream);
void til_stream_start_frame(til_stream_t *stream);
int til_stream_set_hooks(til_stream_t *stream, const til_stream_hooks_t *hooks, void *context);
int til_stream_unset_hooks(til_stream_t *stream, const til_stream_hooks_t *hooks);
+til_audio_context_t * til_stream_get_audio_context(til_stream_t *stream);
/* bare interface for non-module-context owned taps */
int til_stream_tap(til_stream_t *stream, const void *owner, const void *owner_foo, const char *parent_path, uint32_t parent_hash, const til_tap_t *tap);
© All Rights Reserved