diff ater8/play_cmd.c @ 48:3cc26391d24d

ater8: add support for data mode
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 13 Sep 2024 01:03:43 +0000
parents ff94d7fc5891
children
line wrap: on
line diff
--- a/ater8/play_cmd.c	Thu Sep 12 23:37:47 2024 +0000
+++ b/ater8/play_cmd.c	Fri Sep 13 01:03:43 2024 +0000
@@ -31,6 +31,10 @@
 		fprintf(stderr, "error: subslot %d is not active\n", nr);
 		return;
 	}
+	if (at->is_data) {
+		fprintf(stderr, "error: subslot %d is in data mode\n", nr);
+		return;
+	}
 	if (at->play_buffer) {
 		fprintf(stderr, "error: file play already in progress\n");
 		return;