aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:21:39 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:21:39 +0000
commitb4ea6e52b2eba41121431ea6a1569aff04dad8fd (patch)
treecaa7a0f42f921be923cb3807a30901914132bb33 /src/audio.h
parentac0ac9d4d8fac451f5dc12c6bdcfaf41c134c632 (diff)
downloadmpd-b4ea6e52b2eba41121431ea6a1569aff04dad8fd.tar.gz
mpd-b4ea6e52b2eba41121431ea6a1569aff04dad8fd.tar.xz
mpd-b4ea6e52b2eba41121431ea6a1569aff04dad8fd.zip
const pointers in audio.c
git-svn-id: https://svn.musicpd.org/mpd/trunk@7344 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audio.h')
-rw-r--r--src/audio.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/audio.h b/src/audio.h
index f8b28d0d0..71d79ec84 100644
--- a/src/audio.h
+++ b/src/audio.h
@@ -38,11 +38,12 @@ static inline double audioFormatSizeToTime(const AudioFormat * af)
return 8.0 / af->bits / af->channels / af->sampleRate;
}
-void copyAudioFormat(AudioFormat * dest, AudioFormat * src);
+void copyAudioFormat(AudioFormat * dest, const AudioFormat * src);
-int cmpAudioFormat(AudioFormat * dest, AudioFormat * src);
+int cmpAudioFormat(const AudioFormat * dest, const AudioFormat * src);
-void getOutputAudioFormat(AudioFormat * inFormat, AudioFormat * outFormat);
+void getOutputAudioFormat(const AudioFormat * inFormat,
+ AudioFormat * outFormat);
int parseAudioConfig(AudioFormat * audioFormat, char *conf);
@@ -55,7 +56,7 @@ void initAudioDriver(void);
void finishAudioDriver(void);
-int openAudioDevice(AudioFormat * audioFormat);
+int openAudioDevice(const AudioFormat * audioFormat);
int playAudio(const char *playChunk, size_t size);
@@ -65,7 +66,7 @@ void closeAudioDevice(void);
int isAudioDeviceOpen(void);
-int isCurrentAudioFormat(AudioFormat * audioFormat);
+int isCurrentAudioFormat(const AudioFormat * audioFormat);
void sendMetadataToAudioDevice(MpdTag * tag);