aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-03-26 10:37:54 +0000
committerEric Wong <normalperson@yhbt.net>2008-03-26 10:37:54 +0000
commitc0787cc9843b8cb72f18451d20dfebdd02b59a2b (patch)
treec3bca89e15d3b565f42740b01a78bb63ac666832 /src/audio.h
parent5a62c5cf9ce45542d1c90080791b0b4e9f5c24a3 (diff)
downloadmpd-c0787cc9843b8cb72f18451d20dfebdd02b59a2b.tar.gz
mpd-c0787cc9843b8cb72f18451d20dfebdd02b59a2b.tar.xz
mpd-c0787cc9843b8cb72f18451d20dfebdd02b59a2b.zip
audio: use a machine word for array sizes
we do not save anything by limiting a variable to an unsigned char, since the compiler aligns it at machine word size anyway. however by using the full machine word, we save one instruction, and we remove the useless artificial limitation to 255. git-svn-id: https://svn.musicpd.org/mpd/trunk@7203 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audio.h')
-rw-r--r--src/audio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio.h b/src/audio.h
index 857b4aaf6..548beb806 100644
--- a/src/audio.h
+++ b/src/audio.h
@@ -33,7 +33,7 @@ typedef struct _AudioFormat {
volatile mpd_sint8 bits;
} AudioFormat;
-size_t audio_device_count(void);
+unsigned int audio_device_count(void);
void copyAudioFormat(AudioFormat * dest, AudioFormat * src);
@@ -68,9 +68,9 @@ void sendMetadataToAudioDevice(MpdTag * tag);
/* these functions are called in the main parent process while the child
process is busy playing to the audio */
-int enableAudioDevice(int fd, int device);
+int enableAudioDevice(int fd, unsigned int device);
-int disableAudioDevice(int fd, int device);
+int disableAudioDevice(int fd, unsigned int device);
void printAudioDevices(int fd);