summaryrefslogtreecommitdiff
path: root/src/channel.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-30 22:25:43 -0500
committersanine <sanine.not@pm.me>2022-08-30 22:25:43 -0500
commit489c3771e648d412cab283c660996c880149315d (patch)
tree07c8734f4352c460f83e0c9fd0cf9ee00b34e210 /src/channel.h
parentb9761d521087e23ee7a83b854d356b1fa07fe06e (diff)
refactor: use stereo panning model
Diffstat (limited to 'src/channel.h')
-rw-r--r--src/channel.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/channel.h b/src/channel.h
index 6f06803..ec1f645 100644
--- a/src/channel.h
+++ b/src/channel.h
@@ -8,10 +8,11 @@
struct channel_t {
- volatile pint active; /* boolean */
- volatile pint paused; /* boolean */
- volatile pint volume; /* 0-255 */
- volatile pint pan; /* -128-128 */
+ volatile pint active; /* boolean */
+ volatile pint paused; /* boolean */
+ volatile pint volume; /* 0-255 */
+ volatile pint pan_left; /* -128-128 */
+ volatile pint pan_right; /* -128-128 */
PMutex *sound_mutex;
struct mossrose_sound_t sound;
@@ -24,7 +25,7 @@ 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_set_pan(struct channel_t *chan, float pan_left, float pan_right);
void channel_get_next_sample(float *left, float *right, struct channel_t *chan);