Settings.getDiskMode() please!
-
It's already in my pull request...
Actually maybe it's only setDiskMode that's there, but I'll add it today.
-
I've added this now. I'll make a few more additions then I'll update my pull request.
-
Pull request has been updated.
-
Just added an extra function to check enabled state of MIDI channels.
-
What is disk mode for?
-
@iamlamprey Allows the user to select between HDD and SSD depending on the driver their using, it basically adjusts the preload buffer size. I think an NVME mode would be good too.
-
@d-healey this mode wasn t already there in setting? in the floating title.
-
@yall Yes... but Christoph added the new Settings class and I've populated it with functions so you can create your own entirely unique settings page.
-
I've added some safety checks that fixes crashes when using certain settings functions in an exported project.
@Christoph-Hart One issue I've hit is if I check for example the currentAudioDeviceType during on init, it will return empty because the audio device isn't yet initialized. This problem doesn't happen with the custom settings tile. I've had a look in the source but can't see how you're handling this. Should I just use a timer?
-
I just spotted an initialiseWithDefaultDevices function, so I've added a wrapper for that and it works! I guess now I need to do the same thing to initialise from XML and probably best to combine the two functions into a scripting call that can be used to initialise default automatically if no XML is found. What do you think?
-
Well that approach didn't seem to work, I'm probably implementing it incorrectly. But using a timer still looks like a promising option so I'll go down that rabbit hole instead.