From ad468a64f20d82b15fe3512bdea7914a20cac283 Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 5 Sep 2022 19:57:38 -0500 Subject: add mossrose_channel_stop documentation to README --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 3424af7..070ddb4 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,17 @@ Resume a channel. This function has no effect if the channel is already playing. +### `void mossrose_channel_stop(int channel)` ### + +Stop a channel. + + * `channel` - the index of the channel. + +Stopped channels cannot be resumed and are made available for new samples to +be loaded into them. + + + ### `void mossrose_channel_set_callback(int channel, mossrose_channel_callback_t callback, void *userdata)` ### Set a callback to run each time playback of audio on a channel completes. -- cgit v1.2.1