mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
duplicate the vorbis file info when creating a stream
This commit is contained in:
parent
9fda72c119
commit
dfff6bcdb7
1 changed files with 2 additions and 1 deletions
|
@ -263,7 +263,8 @@ vorbis_stream (sfx_t *sfx, char *realname, OggVorbis_File *vf, wavinfo_t info)
|
|||
sfx->release = SND_StreamRelease;
|
||||
|
||||
stream->sfx = sfx;
|
||||
stream->file = vf;
|
||||
stream->file = malloc (sizeof (OggVorbis_File));
|
||||
memcpy (stream->file, vf, sizeof (OggVorbis_File));;
|
||||
stream->resample = info.channels == 2 ? SND_ResampleStereo
|
||||
: SND_ResampleMono;
|
||||
stream->read = vorbis_stream_read;
|
||||
|
|
Loading…
Reference in a new issue