From 034cab6df1032ecd974e3df9307ab2f618590b13 Mon Sep 17 00:00:00 2001 From: zakk Date: Thu, 16 Jan 2003 19:15:10 +0000 Subject: sadasd git-svn-id: svn://svn.icculus.org/blackshades/trunk@84 5198baeb-e213-0410-be47-fc2ff85ca46f --- Source/Support.cpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'Source/Support.cpp') diff --git a/Source/Support.cpp b/Source/Support.cpp index 2e37ff4..aba29ad 100644 --- a/Source/Support.cpp +++ b/Source/Support.cpp @@ -243,7 +243,7 @@ void Files::EndLoad() sFile = -1; } - +#ifdef NOOGG /* Our own special magic version that fixes the filename. */ @@ -267,3 +267,25 @@ void alutUnloadWAV_CFH(ALenum format, void *wave, unsigned int size, { free(wave); } +#else +void alutLoadVorbisFile_CFH(char *filename, ALenum *format, void **wave, + unsigned int *size, ALsizei *freq) +{ + char filename1[256]; + ALsizei format1, size1, bits1, freq1; + + fix_filename(filename, filename1); + + alutLoadWAV(filename1, wave, &format1, &size1, &bits1, &freq1); + + *format = format1; + *size = size1; + *freq = freq1; +} + +void alutUnloadVorbis_CFH(ALenum format, void *wave, unsigned int size, + ALsizei freq) +{ + free(wave); +} +#endif -- cgit v1.2.3