summaryrefslogtreecommitdiff
path: root/src/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices.c')
-rw-r--r--src/devices.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/devices.c b/src/devices.c
index f87fcb1..e135e07 100644
--- a/src/devices.c
+++ b/src/devices.c
@@ -92,3 +92,14 @@ void devices_play(int pattern)
dev->play(pattern);
}
}
+
+void devices_stop(void)
+{
+ dd_list *elem;
+ const struct device_ops *dev;
+
+ DD_LIST_FOREACH(dev_head, elem, dev) {
+ if (dev->stop)
+ dev->stop();
+ }
+}