aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-10-20 16:16:50 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-10-20 16:16:50 +0000
commitce5773848cb297043bda7a0ab0cc3e0081bffdcf (patch)
treee527a95b2db3174c75d49c79af35735fbfe3f85a /src/audio.c
parent608ac668db2dfc4ca5e1b3c68d432086476dd074 (diff)
downloadmpd-ce5773848cb297043bda7a0ab0cc3e0081bffdcf.tar.gz
mpd-ce5773848cb297043bda7a0ab0cc3e0081bffdcf.tar.xz
mpd-ce5773848cb297043bda7a0ab0cc3e0081bffdcf.zip
minor little changes to audio junk
git-svn-id: https://svn.musicpd.org/mpd/trunk@2278 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/audio.c b/src/audio.c
index 605bf796e..a03872709 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -250,6 +250,19 @@ int openAudioDevice(AudioFormat * audioFormat) {
return 0;
}
+void audioError() {
+#ifdef HAVE_AUDIO
+ if(errno==AO_ENOTLIVE) {
+ ERROR("not a live ao device\n");
+ }
+ else if(errno==AO_EOPENDEVICE) {
+ ERROR("not able to open audio device\n");
+ }
+ else if(errno==AO_EBADOPTION) {
+ ERROR("bad driver option\n");
+ }
+#endif
+}
int playAudio(char * playChunk, int size) {
#ifdef HAVE_AUDIO
@@ -293,17 +306,3 @@ void closeAudioDevice() {
}
#endif
}
-
-void audioError() {
-#ifdef HAVE_AUDIO
- if(errno==AO_ENOTLIVE) {
- ERROR("not a live ao device\n");
- }
- else if(errno==AO_EOPENDEVICE) {
- ERROR("not able to open audio device\n");
- }
- else if(errno==AO_EBADOPTION) {
- ERROR("bad driver option\n");
- }
-#endif
-}