comparison pcm/pcm_tx.c @ 28:fa341317c844

pcm: fix bug in play-stop command
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 24 Jun 2024 20:38:58 +0000
parents 27ca01bb5b11
children
comparison
equal deleted inserted replaced
27:2742dbea95f1 28:fa341317c844
195 play_buf_ptr = 0; 195 play_buf_ptr = 0;
196 } 196 }
197 197
198 void cmd_play_stop(int argc, char **argv) 198 void cmd_play_stop(int argc, char **argv)
199 { 199 {
200 if (!record_file) { 200 if (!play_buffer) {
201 printf("error: no file play in progress\n"); 201 printf("error: no file play in progress\n");
202 return; 202 return;
203 } 203 }
204 free(play_buffer); 204 free(play_buffer);
205 play_buffer = NULL; 205 play_buffer = NULL;