From 5a2c2cf1a66076e68d4ec3097e165795102950e6 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 26 Mar 2018 21:10:07 +0000 Subject: [PATCH] snd_vorbis.c: remove leftovers, tidyup. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1574 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/snd_vorbis.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Quake/snd_vorbis.c b/Quake/snd_vorbis.c index 6f8257d1..16985dc0 100644 --- a/Quake/snd_vorbis.c +++ b/Quake/snd_vorbis.c @@ -64,8 +64,6 @@ static ov_callbacks ovc_qfs = (long (*)(void *)) FS_ftell }; -#define OV_OPEN_CALLBACKS ov_open_callbacks - static qboolean S_VORBIS_CodecInitialize (void) { return true; @@ -84,7 +82,7 @@ static qboolean S_VORBIS_CodecOpenStream (snd_stream_t *stream) ovFile = (OggVorbis_File *) Z_Malloc(sizeof(OggVorbis_File)); stream->priv = ovFile; - res = OV_OPEN_CALLBACKS(&stream->fh, ovFile, NULL, 0, ovc_qfs); + res = ov_open_callbacks(&stream->fh, ovFile, NULL, 0, ovc_qfs); if (res != 0) { Con_Printf("%s is not a valid Ogg Vorbis file (error %i).\n", @@ -152,11 +150,11 @@ static int S_VORBIS_CodecReadStream (snd_stream_t *stream, int bytes, void *buff * the channels are interleaved in the output buffer. */ res = ov_read( (OggVorbis_File *)stream->priv, ptr, rem, -#if !defined(VORBIS_USE_TREMOR) +#ifndef VORBIS_USE_TREMOR host_bigendian, VORBIS_SAMPLEWIDTH, VORBIS_SIGNED_DATA, -#endif /* ! VORBIS_USE_TREMOR */ +#endif §ion ); if (res <= 0) break;