diff options
author | XANTRONIX Development | 2022-03-15 18:35:39 -0400 |
---|---|---|
committer | XANTRONIX Development | 2022-03-15 18:35:39 -0400 |
commit | 7f4b113f8dd3b42016a4c9b9efa3ea3b2ea3fce9 (patch) | |
tree | c9eb81354a6dfe02031417efbb3b26b0aa8b2625 /include | |
parent | 1bbe0659cfc4f1ea17e2c05869578959cc11fdfc (diff) | |
download | xas-7f4b113f8dd3b42016a4c9b9efa3ea3b2ea3fce9.tar.gz xas-7f4b113f8dd3b42016a4c9b9efa3ea3b2ea3fce9.tar.bz2 xas-7f4b113f8dd3b42016a4c9b9efa3ea3b2ea3fce9.zip |
Impleemnt xas_mixer_object_add()
Impleemnt xas_mixer_object_add() as a convenience method to create an
audio stream from an object given; ensure audio streams instantiated in
this manner are destroyed upon mixer destruction
Diffstat (limited to 'include')
-rw-r--r-- | include/xas/mixer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/xas/mixer.h b/include/xas/mixer.h index 3769272..79d6ffb 100644 --- a/include/xas/mixer.h +++ b/include/xas/mixer.h @@ -3,8 +3,11 @@ #include <sys/types.h> +#include <xas/object.h> #include <xas/audio.h> +#define XAS_MIXER_INPUT_STREAM_MANAGED (1 << 0) + typedef struct _xas_mixer_input { xas_audio_stream *stream; @@ -12,6 +15,8 @@ typedef struct _xas_mixer_input { bias_l, bias_r; + int flags; + struct _xas_mixer_input *next; } xas_mixer_input; @@ -36,6 +41,11 @@ xas_mixer_input *xas_mixer_input_add(xas_mixer *mixer, float gain, float pan); +xas_mixer_input *xas_mixer_object_add(xas_mixer *mixer, + xas_object *object, + float gain, + float pan); + void xas_mixer_input_set_gain(xas_mixer_input *input, float gain); void xas_mixer_input_set_pan(xas_mixer_input *input, float pan); |