diff options
author | sanine <sanine.not@pm.me> | 2022-09-05 19:56:04 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-09-05 19:56:04 -0500 |
commit | be94297366c4a016a23f428613f65da0957df1b4 (patch) | |
tree | c74851241297b7dcc1057d49574ca151c9422371 /src/channel.c | |
parent | 1ac240ed77536f259c04edb26953ef445dd4ee37 (diff) |
add mossrose_channel_stop
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c index a7a3643..23c3565 100644 --- a/src/channel.c +++ b/src/channel.c @@ -56,6 +56,12 @@ void channel_resume(struct channel_t *chan) } +void channel_stop(struct channel_t *chan) +{ + p_atomic_int_set(&(chan->shared.active), false); +} + + void channel_set_volume(struct channel_t *chan, float volume) { if (volume > 1.0f) volume = 1.0f; |