diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-01-06 17:36:03 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-01-06 17:36:03 +0000 |
commit | a70247b144224d6b9e0a8c8e2cda15dd628c3ef7 (patch) | |
tree | 47cfcff4966f4b761d6ec7f6ed50f5c02743f1f6 /code/client/snd_codec.c | |
parent | 85935ca083c451f9ddfa51c20699e1870cee91bd (diff) | |
download | ioquake3-aero-a70247b144224d6b9e0a8c8e2cda15dd628c3ef7.tar.gz ioquake3-aero-a70247b144224d6b9e0a8c8e2cda15dd628c3ef7.zip |
* Ogg codec support from Joerg Dietrich <dietrich_joerg@gmx.de> (disabled by
default)
git-svn-id: svn://svn.icculus.org/quake3/trunk@465 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/snd_codec.c')
-rw-r--r-- | code/client/snd_codec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/code/client/snd_codec.c b/code/client/snd_codec.c index de35255..6b92da8 100644 --- a/code/client/snd_codec.c +++ b/code/client/snd_codec.c @@ -191,9 +191,10 @@ snd_stream_t *S_CodecUtilOpen(const char *filename, snd_codec_t *codec) { snd_stream_t *stream; fileHandle_t hnd; + int length; // Try to open the file - FS_FOpenFileRead(filename, &hnd, qtrue); + length = FS_FOpenFileRead(filename, &hnd, qtrue); if(!hnd) { Com_Printf("Can't read sound file %s\n", filename); @@ -211,6 +212,7 @@ snd_stream_t *S_CodecUtilOpen(const char *filename, snd_codec_t *codec) // Copy over, return stream->codec = codec; stream->file = hnd; + stream->length = length; return stream; } |