mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43:01 +00:00
Forgot to properly initalize sound, also switched from YM2612 to YM2608,
due to the sound ceiling not properly rendering sounds as they should be
This commit is contained in:
parent
9bbd673bfa
commit
833ed614b6
1 changed files with 10 additions and 1 deletions
|
@ -152,8 +152,8 @@ bool DivEngine::loadTFM(unsigned char* file, size_t len) {
|
|||
ds.systemName="Sega Genesis/Mega Drive or TurboSound FM";
|
||||
ds.subsong[0]->hz=50;
|
||||
ds.systemLen = 1;
|
||||
ds.system[0]=DIV_SYSTEM_YM2612;
|
||||
|
||||
ds.system[0]=DIV_SYSTEM_YM2608;
|
||||
unsigned char magic[8]={0};
|
||||
|
||||
reader.readNoRLE(magic, 8);
|
||||
|
@ -278,6 +278,8 @@ bool DivEngine::loadTFM(unsigned char* file, size_t len) {
|
|||
}
|
||||
|
||||
ds.notes=notes;
|
||||
|
||||
if (active) quitDispatch();
|
||||
BUSY_BEGIN_SOFT;
|
||||
saveLock.lock();
|
||||
song.unload();
|
||||
|
@ -286,6 +288,13 @@ bool DivEngine::loadTFM(unsigned char* file, size_t len) {
|
|||
recalcChans();
|
||||
saveLock.unlock();
|
||||
BUSY_END;
|
||||
if (active) {
|
||||
initDispatch();
|
||||
BUSY_BEGIN;
|
||||
renderSamples();
|
||||
reset();
|
||||
BUSY_END;
|
||||
}
|
||||
success=true;
|
||||
} catch(TFMEndOfFileException& e) {
|
||||
lastError="incomplete file!";
|
||||
|
|
Loading…
Reference in a new issue