diff options
| author | zakk <zakk@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-16 19:15:10 +0000 |
|---|---|---|
| committer | zakk <zakk@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-16 19:15:10 +0000 |
| commit | 034cab6df1032ecd974e3df9307ab2f618590b13 (patch) | |
| tree | 44ce739e621a0f20b890b6f3d76f79cf669a8a23 /Source/Support.cpp | |
| parent | 481c87e11ddad382258f290aa849d09043bff9f2 (diff) | |
| download | blackshades-034cab6df1032ecd974e3df9307ab2f618590b13.tar.gz | |
sadasd
git-svn-id: svn://svn.icculus.org/blackshades/trunk@84 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/Support.cpp')
| -rw-r--r-- | Source/Support.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
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 |
