diff ater/play_cmd.c @ 44:16715bd149e0

ater: add support for data mode
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 12 Sep 2024 09:01:50 +0000
parents 1dda11905e85
children db39e8855f3d
line wrap: on
line diff
--- a/ater/play_cmd.c	Fri Aug 30 19:04:57 2024 +0000
+++ b/ater/play_cmd.c	Thu Sep 12 09:01:50 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;