diff options
author | Tim Angus <tim@ngus.net> | 2006-01-09 02:16:46 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-01-09 02:16:46 +0000 |
commit | 7d96b51fbc8b0df8ebf348de2aa5f2058254ed93 (patch) | |
tree | 1b13c58efb4f469e4cae5f000bc7e2d2e4b680fc /src/client/snd_codec.c | |
parent | dc6118816aa49c9b1e6dd82e6c6504f2153c37df (diff) |
* Merged ioq3-468
Diffstat (limited to 'src/client/snd_codec.c')
-rw-r--r-- | src/client/snd_codec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/snd_codec.c b/src/client/snd_codec.c index 338d0306..e1c6bb47 100644 --- a/src/client/snd_codec.c +++ b/src/client/snd_codec.c @@ -192,9 +192,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); @@ -212,6 +213,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; } |