rem: "error decoding %s, code %d\n",
add: "error decoding %s, code %ld\n",
context: uint32 SoundDecoder_DecodeAll (TFB_SoundDecoder *decoder){	switch (decoder->type)	{		case SOUNDDECODER_WAV:		{			LoadWAVFile (decoder->filename ,&decoder->format, &decoder->buffer, 				&decoder->buffer_size, &decoder->frequency, decoder_formats.want_big_endian);						if (decoder->buffer_size != 0)			{				decoder->type = SOUNDDECODER_BUF;				decoder->data = decoder->buffer;				decoder->pos = 0;				decoder->error = SOUNDDECODER_OK;			}			else			{				decoder->error = SOUNDDECODER_ERROR;			}						return decoder->buffer_size;		}		case SOUNDDECODER_MOD:		{			fprintf (stderr, "SoundDecoder_DecodeAll(): unimplemented for mod\n");			break;		}		case SOUNDDECODER_OGG:		{			OggVorbis_File *vf = (OggVorbis_File *) decoder->data;			uint32 decoded_bytes = 0;			long rc;			int bitstream;			uint32 reqbufsize = decoder->buffer_size;						if (decoder->looping)			{				fprintf (stderr, "SoundDecoder_DecodeAll(): "						"called for %s with looping\n", decoder->filename);				return 0;			}			if (reqbufsize < 4096)				reqbufsize = 4096;#ifdef DEBUG			if (reqbufsize < 16384)				fprintf (stderr, "SoundDecoder_DecodeAll(): WARNING, "						"called with a small buffer (%u)\n", reqbufsize);#endif			for (rc = 1; rc > 0; )			{					if (decoded_bytes >= decoder->buffer_size)				{	// need to grow buffer					decoder->buffer_size += reqbufsize;					decoder->buffer = HRealloc (							decoder->buffer, decoder->buffer_size);				}				rc = ov_read (vf, (char*)decoder->buffer + decoded_bytes,						decoder->buffer_size - decoded_bytes,						decoder_formats.want_big_endian, 2, 1, &bitstream);				if (rc < 0)				{					decoder->error = SOUNDDECODER_ERROR;					fprintf (stderr, "SoundDecoder_DecodeAll(): "							"error decoding %s, code %d\n",							decoder->filename, rc);					return decoded_bytes;				}				decoded_bytes += rc;			}			decoder->buffer_size = decoded_bytes;			ov_clear (vf);			HFree (vf);			decoder->type = SOUNDDECODER_BUF;			decoder->data = decoder->buffer;			decoder->pos = 0;			decoder->error = SOUNDDECODER_OK;			return decoded_bytes;			break;		}		case SOUNDDECODER_NULL:		{			decoder->error = SOUNDDECODER_OK;			return (decoder->end_sample * 2);			break;		}		default:		{			fprintf (stderr, "SoundDecoder_DecodeAll(): unknown type %d\n", decoder->type);			break;		}	}	decoder->error = SOUNDDECODER_ERROR;	return 0;}