mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
make the opened sfx name usable
This commit is contained in:
parent
a477b6caf7
commit
7d06343b2f
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue