From 91726809f9e97d8d4fb7b6c0642234ff96535bdd Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 28 Aug 2022 12:41:53 -0500 Subject: add channel_init() and channel_reset() --- src/channel.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/channel.h') diff --git a/src/channel.h b/src/channel.h index 6266a10..4d0800b 100644 --- a/src/channel.h +++ b/src/channel.h @@ -2,7 +2,25 @@ #define MOSSROSE_CHANNEL_H #include +#include #include +#include + + +struct channel_t { + volatile pint active; /* boolean */ + volatile pint paused; /* boolean */ + volatile pint volume; /* 0-255 */ + volatile pint pan; /* -128-127 */ + + PMutex *sound_mutex; + struct mossrose_sound_t sound; + size_t pos; +}; + + +void channel_init(struct channel_t *chan); +void channel_reset(struct channel_t *chan); #endif -- cgit v1.2.1