From 72b7a2d7dc479e34d57e2a163b2da755d2d1f2dd Mon Sep 17 00:00:00 2001 From: angel Date: Fri, 22 Apr 2005 10:21:31 +0000 Subject: [PATCH] load_wav_file() returns 0 on non-error instead of the number of channels. git-svn-id: file:///home/angel/tmp/svn-triptico/ahxm/trunk@446 c87de0a0-a11c-0410-a1e5-866214bc28b2 --- input.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/input.c b/input.c index 7a77dfd..54a58af 100644 --- a/input.c +++ b/input.c @@ -157,10 +157,9 @@ void load_pcm_wave(FILE * f, int bits, int sign, struct ss_wave * w) * Loads a file in .WAV format. @size will contain on output the * size in samples of each channel stored in @wave. * - * Returns -100 if the file could not be opened, -101 if the - * file is not recognized as .WAV, -102 if the file contains - * anything more than uncompressed PCM data, or the number of - * stored channels if everything went OK. + * Returns -100 if the file could not be opened, -101 if the file + * is not recognized as .WAV, -102 if the file contains anything + * more than uncompressed PCM data, or 0 if everything went OK. */ int load_wav_file(struct ss_wave * w, char * file) { @@ -230,7 +229,7 @@ int load_wav_file(struct ss_wave * w, char * file) fclose(f); - return(n_channels); + return(0); } -- 2.11.4.GIT