summaryrefslogtreecommitdiff
path: root/src/channel.h
diff options
context:
space:
mode:
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);