mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
Reverted: 2424536ec6f9 The setAsyncLoading function is used for a different purpose. In our case, async means that the file is read on the fly, and otherwise it is fully loaded into memory before being encoded. Synchronous mode is used for example during loading when hard disk access is not guaranteed.
--HG-- branch : sound_dev
This commit is contained in:
parent
b1c9745c8d
commit
afdbc97039
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ IMusicBuffer *IMusicBuffer::createMusicBuffer(const std::string &filepath, bool
|
|||
string type = CFile::getExtension(filepath);
|
||||
|
||||
CIFile *ifile = new CIFile();
|
||||
ifile->setAsyncLoading(async);
|
||||
ifile->setCacheFileOnOpen(!async);
|
||||
ifile->allowBNPCacheFileOnOpen(!async);
|
||||
ifile->open(lookup);
|
||||
|
||||
IMusicBuffer *mb = createMusicBuffer(type, ifile, loop);
|
||||
|
|
Loading…
Reference in a new issue