diff options
author | sanine <sanine.not@pm.me> | 2022-09-03 21:32:25 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-09-03 21:32:25 -0500 |
commit | 2cf000fb7cbe653c2e96e0b3b8f3c1425401d3fc (patch) | |
tree | e172ef67b253d1eaa0fb22186b5901edd4de793a /src/channel.h | |
parent | a416cfb6881b8ff99c29ba87c1d940d6143e44b1 (diff) |
add looping
Diffstat (limited to 'src/channel.h')
-rw-r--r-- | src/channel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/channel.h b/src/channel.h index ae9c24b..5be42a2 100644 --- a/src/channel.h +++ b/src/channel.h @@ -13,6 +13,7 @@ struct channel_shared_t { volatile pint volume; /* 0-255 */ volatile pint pan_left; /* -255-255 */ volatile pint pan_right; /* -255-255 */ + volatile pint loops; }; @@ -34,7 +35,7 @@ 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_left, float pan_right); -int channel_sound_load(struct channel_t *chan, struct mossrose_sound_t *sound, bool force); +int channel_sound_load(struct channel_t *chan, struct mossrose_sound_t *sound, bool force, int loops); void channel_get_next_sample(float *left, float *right, struct channel_t *chan); |