mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 12:01:43 +00:00
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
This commit is contained in:
parent
84c2c3c4ea
commit
5a2c2cf1a6
1 changed files with 3 additions and 5 deletions
|
@ -64,8 +64,6 @@ static ov_callbacks ovc_qfs =
|
||||||
(long (*)(void *)) FS_ftell
|
(long (*)(void *)) FS_ftell
|
||||||
};
|
};
|
||||||
|
|
||||||
#define OV_OPEN_CALLBACKS ov_open_callbacks
|
|
||||||
|
|
||||||
static qboolean S_VORBIS_CodecInitialize (void)
|
static qboolean S_VORBIS_CodecInitialize (void)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
@ -84,7 +82,7 @@ static qboolean S_VORBIS_CodecOpenStream (snd_stream_t *stream)
|
||||||
|
|
||||||
ovFile = (OggVorbis_File *) Z_Malloc(sizeof(OggVorbis_File));
|
ovFile = (OggVorbis_File *) Z_Malloc(sizeof(OggVorbis_File));
|
||||||
stream->priv = ovFile;
|
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)
|
if (res != 0)
|
||||||
{
|
{
|
||||||
Con_Printf("%s is not a valid Ogg Vorbis file (error %i).\n",
|
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.
|
* the channels are interleaved in the output buffer.
|
||||||
*/
|
*/
|
||||||
res = ov_read( (OggVorbis_File *)stream->priv, ptr, rem,
|
res = ov_read( (OggVorbis_File *)stream->priv, ptr, rem,
|
||||||
#if !defined(VORBIS_USE_TREMOR)
|
#ifndef VORBIS_USE_TREMOR
|
||||||
host_bigendian,
|
host_bigendian,
|
||||||
VORBIS_SAMPLEWIDTH,
|
VORBIS_SAMPLEWIDTH,
|
||||||
VORBIS_SIGNED_DATA,
|
VORBIS_SIGNED_DATA,
|
||||||
#endif /* ! VORBIS_USE_TREMOR */
|
#endif
|
||||||
§ion );
|
§ion );
|
||||||
if (res <= 0)
|
if (res <= 0)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue