make the opened sfx name usable

This commit is contained in:
Bill Currie 2003-04-21 18:09:53 +00:00
parent a477b6caf7
commit 7d06343b2f
2 changed files with 2 additions and 0 deletions

View File

@ -274,6 +274,7 @@ vorbis_stream_open (sfx_t *_sfx)
stream = calloc (1, sizeof (sfxstream_t) + size);
memcpy (stream->buffer.data + size, "\xde\xad\xbe\xef", 4);
sfx->name = _sfx->name;
sfx->data = stream;
sfx->wavinfo = SND_CacheWavinfo;
sfx->touch = sfx->retain = SND_StreamRetain;

View File

@ -145,6 +145,7 @@ wav_stream_open (sfx_t *_sfx)
stream = calloc (1, sizeof (sfxstream_t) + size);
memcpy (stream->buffer.data + size, "\xde\xad\xbe\xef", 4);
sfx->name = _sfx->name;
sfx->data = stream;
sfx->wavinfo = SND_CacheWavinfo;
sfx->touch = sfx->retain = SND_StreamRetain;