mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-29 16:03:01 +00:00
fixes
This commit is contained in:
parent
aa4ccc3c3f
commit
7974b96275
8 changed files with 1 additions and 38 deletions
|
@ -19,11 +19,6 @@
|
||||||
|
|
||||||
#include "fileOpsCommon.h"
|
#include "fileOpsCommon.h"
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
|
||||||
#include "../gui/gui.h"
|
|
||||||
extern FurnaceGUI g;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class DivEngine;
|
class DivEngine;
|
||||||
|
|
||||||
//P VOX ADPCM sample bank
|
//P VOX ADPCM sample bank
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
|
|
||||||
#include "fileOpsCommon.h"
|
#include "fileOpsCommon.h"
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
|
||||||
#include "../gui/gui.h"
|
|
||||||
extern FurnaceGUI g;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class DivEngine;
|
class DivEngine;
|
||||||
|
|
||||||
//P86 8-bit PCM sample bank
|
//P86 8-bit PCM sample bank
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
|
|
||||||
#include "fileOpsCommon.h"
|
#include "fileOpsCommon.h"
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
|
||||||
#include "../gui/gui.h"
|
|
||||||
extern FurnaceGUI g;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class DivEngine;
|
class DivEngine;
|
||||||
|
|
||||||
//PDX 8-bit OKI ADPCM sample bank
|
//PDX 8-bit OKI ADPCM sample bank
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
|
|
||||||
#include "fileOpsCommon.h"
|
#include "fileOpsCommon.h"
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
|
||||||
#include "../gui/gui.h"
|
|
||||||
extern FurnaceGUI g;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class DivEngine;
|
class DivEngine;
|
||||||
|
|
||||||
//PPC PMD's YM2608 ADPCM-B sample bank
|
//PPC PMD's YM2608 ADPCM-B sample bank
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
|
|
||||||
#include "fileOpsCommon.h"
|
#include "fileOpsCommon.h"
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
|
||||||
#include "../gui/gui.h"
|
|
||||||
extern FurnaceGUI g;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class DivEngine;
|
class DivEngine;
|
||||||
|
|
||||||
//PPS AY-3-8910 sample bank
|
//PPS AY-3-8910 sample bank
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
|
|
||||||
#include "fileOpsCommon.h"
|
#include "fileOpsCommon.h"
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
|
||||||
#include "../gui/gui.h"
|
|
||||||
extern FurnaceGUI g;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class DivEngine;
|
class DivEngine;
|
||||||
|
|
||||||
//PVI YM2608 ADPCM-B sample bank
|
//PVI YM2608 ADPCM-B sample bank
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
|
|
||||||
#include "fileOpsCommon.h"
|
#include "fileOpsCommon.h"
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
|
||||||
#include "../gui/gui.h"
|
|
||||||
extern FurnaceGUI g;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class DivEngine;
|
class DivEngine;
|
||||||
|
|
||||||
//PZI 8-bit PCM sample bank
|
//PZI 8-bit PCM sample bank
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
#include "sfWrapper.h"
|
#include "sfWrapper.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _LE(string) (string)
|
|
||||||
|
|
||||||
std::vector<DivSample*> DivEngine::sampleFromFile(const char* path) {
|
std::vector<DivSample*> DivEngine::sampleFromFile(const char* path) {
|
||||||
std::vector<DivSample*> ret;
|
std::vector<DivSample*> ret;
|
||||||
|
|
||||||
|
@ -113,7 +111,7 @@ std::vector<DivSample*> DivEngine::sampleFromFile(const char* path) {
|
||||||
buf=new unsigned char[len];
|
buf=new unsigned char[len];
|
||||||
if (fread(buf,1,len,f)!=(size_t)len) {
|
if (fread(buf,1,len,f)!=(size_t)len) {
|
||||||
logW("did not read entire sample bank file buffer!");
|
logW("did not read entire sample bank file buffer!");
|
||||||
lastError=_LE("did not read entire sample bank file!");
|
lastError=_("did not read entire sample bank file!");
|
||||||
delete[] buf;
|
delete[] buf;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue