diff options
author | Max Kellermann <max@duempel.org> | 2008-10-29 20:40:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-29 20:40:27 +0100 |
commit | 58c5bee9f0bcb46da7d113b66a4e1e2d7add9837 (patch) | |
tree | 4517d2156aa3643247e7f2fc886af86d3dfd8791 /src/audio.h | |
parent | 03390d8be1cb8983778faf6eedb9bcfd26a6dbce (diff) | |
download | mpd-58c5bee9f0bcb46da7d113b66a4e1e2d7add9837.tar.gz mpd-58c5bee9f0bcb46da7d113b66a4e1e2d7add9837.tar.xz mpd-58c5bee9f0bcb46da7d113b66a4e1e2d7add9837.zip |
output: use bool for return values and flags
Don't return 0/-1 on success/error, but true/false. Instead of int,
use bool for storing flags.
Diffstat (limited to 'src/audio.h')
-rw-r--r-- | src/audio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio.h b/src/audio.h index 9140afd58..c6f6cbde0 100644 --- a/src/audio.h +++ b/src/audio.h @@ -42,9 +42,9 @@ void initAudioDriver(void); void finishAudioDriver(void); -int openAudioDevice(const struct audio_format *audioFormat); +bool openAudioDevice(const struct audio_format *audioFormat); -int playAudio(const char *playChunk, size_t size); +bool playAudio(const char *playChunk, size_t size); void audio_output_pause_all(void); |