mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Prefill the sfx stream buffer to ensure the decoders have allocated any memory they might need. Problem found using jack_interposer (http://repo.or.cz/w/jack_interposer.git).
This commit is contained in:
parent
dabb720fd1
commit
98a0da742a
1 changed files with 1 additions and 3 deletions
|
@ -166,9 +166,7 @@ SND_SFX_StreamOpen (sfx_t *sfx, void *file,
|
|||
SND_SetPaint (&stream->buffer);
|
||||
|
||||
stream->resample (&stream->buffer, 0, 0); // get sfx setup properly
|
||||
stream->seek (stream->file, 0, &stream->wavinfo);
|
||||
|
||||
stream->buffer.advance (&stream->buffer, 0);
|
||||
stream->buffer.setpos (&stream->buffer, 0); // pre-fill the buffer
|
||||
|
||||
return new_sfx;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue