From 7d06343b2f209addbd310d9d4ea6d9cb4e0094cc Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 21 Apr 2003 18:09:53 +0000 Subject: [PATCH] make the opened sfx name usable --- libs/audio/renderer/vorbis.c | 1 + libs/audio/renderer/wav.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/audio/renderer/vorbis.c b/libs/audio/renderer/vorbis.c index bf3d8757b..436b74fb4 100644 --- a/libs/audio/renderer/vorbis.c +++ b/libs/audio/renderer/vorbis.c @@ -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; diff --git a/libs/audio/renderer/wav.c b/libs/audio/renderer/wav.c index b240eabe5..f5450b00b 100644 --- a/libs/audio/renderer/wav.c +++ b/libs/audio/renderer/wav.c @@ -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;