From 23ee0a2ae6ea10377b8886cd02752eca4d7fa6d3 Mon Sep 17 00:00:00 2001 From: max_10 Date: Wed, 27 Feb 2019 12:24:05 +0100 Subject: [PATCH] Revert "try to fix slowly close internet radio/music player" This reverts commit 42dc38f7c91a8e2b40275678695edb48b2855498. --- libarmbox/audio.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libarmbox/audio.cpp b/libarmbox/audio.cpp index 9fc7101..85bf78d 100644 --- a/libarmbox/audio.cpp +++ b/libarmbox/audio.cpp @@ -314,7 +314,7 @@ int cAudio::WriteClip(unsigned char *buffer, int size) int cAudio::StopClip() { hal_debug("%s\n", __FUNCTION__); -#if 0 + if (clipfd < 0) { hal_info("%s: clipfd not yet opened\n", __FUNCTION__); return -1; @@ -326,7 +326,6 @@ int cAudio::StopClip() mixer_fd = -1; } setVolume(volume, volume); -#endif return 0; };