#ifndef MOSSROSE_CHANNEL_H #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