Skip to content

Commit bdf6dee

Browse files
committed
bug-fix: aplayの終了処理が抜けていた。
1 parent 35bcba8 commit bdf6dee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libcallback/audio_play.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ int PlayPCM(char *file, int vol) {
5555
while(local_sdk_speaker_feed_pcm_data(buf, size)) usleep(100 * 1000);
5656
}
5757
fclose(fp);
58-
usleep(200 * 1000);
58+
usleep(2 * 1000 * 1000);
5959
local_sdk_speaker_finish_buf_data();
60+
local_sdk_speaker_set_volume(0);
61+
local_sdk_speaker_set_ap_mode(0);
6062
}
6163
fprintf(stderr, "[command] aplay: finish\n");
6264
return 0;

0 commit comments

Comments
 (0)