mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-13 00:34:11 +00:00
switch to malloc/free for S_CodecLoad. required for warpspasm
This commit is contained in:
parent
d5de96498d
commit
131d4e8de7
3 changed files with 3 additions and 3 deletions
|
@ -228,7 +228,7 @@ byte *S_CodecLoad(const char *filename, snd_info_t *info)
|
|||
{
|
||||
*info = stream->info;
|
||||
|
||||
byte *data = (byte *)Z_Malloc(stream->info.size);
|
||||
byte *data = (byte *)malloc(stream->info.size);
|
||||
|
||||
if (stream->info.size != S_CodecReadStream(stream, stream->info.size, data))
|
||||
{
|
||||
|
|
|
@ -80,7 +80,7 @@ int S_CodecRewindStream (snd_stream_t *stream);
|
|||
|
||||
/* Loads the entire file using S_CodecOpenStreamAny and
|
||||
* returns a buffer containing the audio samples, which the
|
||||
* caller is responsible for freeing with Z_Free. Returns
|
||||
* caller is responsible for freeing with free(). Returns
|
||||
* NULL if an error occurrs.
|
||||
*/
|
||||
byte *S_CodecLoad(const char *filename, snd_info_t *info);
|
||||
|
|
|
@ -156,7 +156,7 @@ sfxcache_t *S_LoadSound (sfx_t *s)
|
|||
|
||||
ResampleSfx (s, sc->speed, sc->width, data + info.dataofs);
|
||||
|
||||
Z_Free(data);
|
||||
free(data);
|
||||
|
||||
return sc;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue