summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index b9242c4..0141569 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -28,6 +28,18 @@ void channel_reset(struct channel_t *chan)
}
+void channel_pause(struct channel_t *chan)
+{
+ p_atomic_int_set(&(chan->paused), true);
+}
+
+
+void channel_resume(struct channel_t *chan)
+{
+ p_atomic_int_set(&(chan->paused), false);
+}
+
+
void channel_get_next_sample(float *left, float *right, struct channel_t *chan)
{
bool active = p_atomic_int_get(&(chan->active));