aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-19 22:27:29 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-19 22:27:29 +0000
commitdbd79a6b47d1cf09f3ccc8df5ef1a8e1dfedd853 (patch)
treeefa08ce06db6b210c91d8f2bf82d21a89975efa2 /src/audio.c
parent7f1553668329eb155629ef5a07b9161a26267d80 (diff)
downloadmpd-dbd79a6b47d1cf09f3ccc8df5ef1a8e1dfedd853.tar.gz
mpd-dbd79a6b47d1cf09f3ccc8df5ef1a8e1dfedd853.tar.xz
mpd-dbd79a6b47d1cf09f3ccc8df5ef1a8e1dfedd853.zip
fix a few bugs in mp3_decode and minimize alsa underruns by playing silence when switch songs
git-svn-id: https://svn.musicpd.org/mpd/trunk@1572 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c
index e677f8768..605bf796e 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -278,6 +278,11 @@ int playAudio(char * playChunk, int size) {
return 0;
}
+int isAudioDeviceOpen() {
+ if(audio_device) return 1;
+ return 0;
+}
+
void closeAudioDevice() {
#ifdef HAVE_AUDIO
if(audio_device) {