Merge branch 'master' into newFilePicker
This commit is contained in:
commit
919ff4a9d2
45 changed files with 152 additions and 41 deletions
|
|
@ -933,10 +933,10 @@ void FurnaceGUI::doAction(int what) {
|
|||
sample->loopEnd=waveLen;
|
||||
sample->loop=true;
|
||||
sample->loopMode=DIV_SAMPLE_LOOP_FORWARD;
|
||||
sample->depth=DIV_SAMPLE_DEPTH_8BIT;
|
||||
sample->depth=DIV_SAMPLE_DEPTH_16BIT;
|
||||
if (sample->init(waveLen)) {
|
||||
for (unsigned short i=0; i<waveLen; i++) {
|
||||
sample->data8[i]=((wave->data[i]*256)/(wave->max+1))-128;
|
||||
sample->data16[i]=((wave->data[i]*65535.0f)/(wave->max))-32768;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1903,11 +1903,12 @@ void FurnaceGUI::openFileDialog(FurnaceGUIFileDialogs type) {
|
|||
if (!dirExists(workingDirIns)) workingDirIns=getHomeDir();
|
||||
hasOpened=fileDialog->openLoad(
|
||||
_("Load Instrument"),
|
||||
{_("all compatible files"), "*.fui *.dmp *.tfi *.vgi *.s3i *.sbi *.opli *.opni *.y12 *.bnk *.ff *.gyb *.opm *.wopl *.wopn",
|
||||
{_("all compatible files"), "*.fui *.dmp *.tfi *.vgi *.eif *.s3i *.sbi *.opli *.opni *.y12 *.bnk *.ff *.gyb *.opm *.wopl *.wopn",
|
||||
_("Furnace instrument"), "*.fui",
|
||||
_("DefleMask preset"), "*.dmp",
|
||||
_("TFM Music Maker instrument"), "*.tfi",
|
||||
_("VGM Music Maker instrument"), "*.vgi",
|
||||
_("Echo instrument"), "*.eif",
|
||||
_("Scream Tracker 3 instrument"), "*.s3i",
|
||||
_("SoundBlaster instrument"), "*.sbi",
|
||||
_("Wohlstand OPL instrument"), "*.opli",
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
String alignHint=fmt::sprintf(_("NES: loop start must be a multiple of 512 (try with %d)"),tryWith);
|
||||
SAMPLE_WARN(warnLoopStart,alignHint);
|
||||
}
|
||||
if ((sample->loopEnd-8)&127) {
|
||||
if ((sample->loopEnd>0) && ((sample->loopEnd-8)&127)) {
|
||||
int tryWith=(sample->loopEnd-8)&(~127);
|
||||
if (tryWith>(int)sample->samples) tryWith-=128;
|
||||
tryWith+=8; // +1 bc of how sample length is treated: https://www.nesdev.org/wiki/APU_DMC
|
||||
|
|
|
|||
|
|
@ -1242,6 +1242,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
|
|||
|
||||
if (ImGui::Checkbox(_("Bankswitched (Seta 2)"),&isBanked)) {
|
||||
altered=true;
|
||||
mustRender=true;
|
||||
}
|
||||
|
||||
if (altered) {
|
||||
|
|
@ -1743,6 +1744,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
|
|||
|
||||
if (ImGui::Checkbox(_("Bankswitched (NMK112)"),&isBanked)) {
|
||||
altered=true;
|
||||
mustRender=true;
|
||||
}
|
||||
|
||||
if (altered) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue