fix bSoundPreloadAll
(this makes the music wheel very slow; need a better mode, to only allow streaming one file at a time)
This commit is contained in:
@@ -45,7 +45,8 @@ bool SoundReader_Preload::Open(SoundReader *source)
|
|||||||
/* Add the buffer. */
|
/* Add the buffer. */
|
||||||
buf.get_owned().append(buffer, buffer+cnt);
|
buf.get_owned().append(buffer, buffer+cnt);
|
||||||
|
|
||||||
if(buf.get_owned().size() > max_prebuf_size)
|
if(!PREFSMAN->m_bSoundPreloadAll &&
|
||||||
|
buf.get_owned().size() > max_prebuf_size)
|
||||||
return false; /* too big */
|
return false; /* too big */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user