mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 17:59:03 +00:00
Fixed: #1032 Crash in OpenAL driver when a music is playing and user returns to selection menu
This commit is contained in:
parent
52269e67d2
commit
21cd09beb5
1 changed files with 7 additions and 7 deletions
|
@ -22,7 +22,8 @@
|
|||
using namespace std;
|
||||
using namespace NLMISC;
|
||||
|
||||
namespace NLSOUND {
|
||||
namespace NLSOUND
|
||||
{
|
||||
|
||||
IMusicBuffer::IMusicBuffer() : _InternalStream(NULL)
|
||||
{
|
||||
|
@ -45,8 +46,7 @@ IMusicBuffer *IMusicBuffer::createMusicBuffer(const std::string &filepath, bool
|
|||
string type = CFile::getExtension(filepath);
|
||||
|
||||
CIFile *ifile = new CIFile();
|
||||
ifile->setCacheFileOnOpen(!async);
|
||||
ifile->allowBNPCacheFileOnOpen(!async);
|
||||
ifile->setAsyncLoading(async);
|
||||
ifile->open(lookup);
|
||||
|
||||
IMusicBuffer *mb = createMusicBuffer(type, ifile, loop);
|
||||
|
|
Loading…
Reference in a new issue