|
|
@ -22,7 +22,8 @@
|
|
|
|
using namespace std;
|
|
|
|
using namespace std;
|
|
|
|
using namespace NLMISC;
|
|
|
|
using namespace NLMISC;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NLSOUND {
|
|
|
|
namespace NLSOUND
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
IMusicBuffer::IMusicBuffer() : _InternalStream(NULL)
|
|
|
|
IMusicBuffer::IMusicBuffer() : _InternalStream(NULL)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -45,8 +46,7 @@ IMusicBuffer *IMusicBuffer::createMusicBuffer(const std::string &filepath, bool
|
|
|
|
string type = CFile::getExtension(filepath);
|
|
|
|
string type = CFile::getExtension(filepath);
|
|
|
|
|
|
|
|
|
|
|
|
CIFile *ifile = new CIFile();
|
|
|
|
CIFile *ifile = new CIFile();
|
|
|
|
ifile->setCacheFileOnOpen(!async);
|
|
|
|
ifile->setAsyncLoading(async);
|
|
|
|
ifile->allowBNPCacheFileOnOpen(!async);
|
|
|
|
|
|
|
|
ifile->open(lookup);
|
|
|
|
ifile->open(lookup);
|
|
|
|
|
|
|
|
|
|
|
|
IMusicBuffer *mb = createMusicBuffer(type, ifile, loop);
|
|
|
|
IMusicBuffer *mb = createMusicBuffer(type, ifile, loop);
|
|
|
|