summaryrefslogtreecommitdiff
path: root/src/channel.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-29 00:00:51 -0500
committersanine <sanine.not@pm.me>2022-08-29 00:00:51 -0500
commitb9761d521087e23ee7a83b854d356b1fa07fe06e (patch)
treeadf5097346448c30687ba22b3496ef877c3b38e9 /src/channel.h
parenta0e405532e276bc1b2c9cae0e44295b17d987151 (diff)
add channel_set_volume and channel_set_pan
Diffstat (limited to 'src/channel.h')
-rw-r--r--src/channel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/channel.h b/src/channel.h
index 2bc45d2..6f06803 100644
--- a/src/channel.h
+++ b/src/channel.h
@@ -11,7 +11,7 @@ struct channel_t {
volatile pint active; /* boolean */
volatile pint paused; /* boolean */
volatile pint volume; /* 0-255 */
- volatile pint pan; /* -128-127 */
+ volatile pint pan; /* -128-128 */
PMutex *sound_mutex;
struct mossrose_sound_t sound;
@@ -21,6 +21,10 @@ struct channel_t {
void channel_init(struct channel_t *chan);
void channel_reset(struct channel_t *chan);
+void channel_pause(struct channel_t *chan);
+void channel_resume(struct channel_t *chan);
+void channel_set_volume(struct channel_t *chan, float volume);
+void channel_set_pan(struct channel_t *chan, float pan);
void channel_get_next_sample(float *left, float *right, struct channel_t *chan);