comparison 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
comparison
equal deleted inserted replaced
43:55f02d4aee79 44:16715bd149e0
27 goto usage; 27 goto usage;
28 nr = argv[1][0] - '0'; 28 nr = argv[1][0] - '0';
29 at = &subslots[nr]; 29 at = &subslots[nr];
30 if (!at->is_active) { 30 if (!at->is_active) {
31 fprintf(stderr, "error: subslot %d is not active\n", nr); 31 fprintf(stderr, "error: subslot %d is not active\n", nr);
32 return;
33 }
34 if (at->is_data) {
35 fprintf(stderr, "error: subslot %d is in data mode\n", nr);
32 return; 36 return;
33 } 37 }
34 if (at->play_buffer) { 38 if (at->play_buffer) {
35 fprintf(stderr, "error: file play already in progress\n"); 39 fprintf(stderr, "error: file play already in progress\n");
36 return; 40 return;