aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
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.c
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 '')
-rw-r--r--src/audio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audio.c b/src/audio.c
index 1e4c70cbc..3c5ef4478 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -64,7 +64,7 @@ unsigned int audio_device_count(void)
return nr;
}
-void copyAudioFormat(AudioFormat * dest, AudioFormat * src)
+void copyAudioFormat(AudioFormat * dest, const AudioFormat * src)
{
if (!src)
return;
@@ -72,7 +72,7 @@ void copyAudioFormat(AudioFormat * dest, AudioFormat * src)
memcpy(dest, src, sizeof(AudioFormat));
}
-int cmpAudioFormat(AudioFormat * f1, AudioFormat * f2)
+int cmpAudioFormat(const AudioFormat * f1, const AudioFormat * f2)
{
if (f1 && f2 && (f1->sampleRate == f2->sampleRate) &&
(f1->bits == f2->bits) && (f1->channels == f2->channels))
@@ -141,7 +141,7 @@ void initAudioDriver(void)
}
}
-void getOutputAudioFormat(AudioFormat * inAudioFormat,
+void getOutputAudioFormat(const AudioFormat * inAudioFormat,
AudioFormat * outAudioFormat)
{
if (audio_configFormat) {
@@ -251,7 +251,7 @@ void finishAudioDriver(void)
audioOutputArraySize = 0;
}
-int isCurrentAudioFormat(AudioFormat * audioFormat)
+int isCurrentAudioFormat(const AudioFormat * audioFormat)
{
if (!audioFormat)
return 1;
@@ -319,7 +319,7 @@ static int flushAudioBuffer(void)
return ret;
}
-int openAudioDevice(AudioFormat * audioFormat)
+int openAudioDevice(const AudioFormat * audioFormat)
{
int ret = -1;
unsigned int i;