-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config for Soundfont, Font and "Focus Lost" #3168
Conversation
This function can open folders and websites, useful for the settings
This already contains a few lines of font I couldn't properly split. Wrote both at the same time...
The Window class was extended to allow setting a font.
src/filefinder.h
Outdated
@@ -37,6 +37,14 @@ | |||
* insensitive files paths. | |||
*/ | |||
namespace FileFinder { | |||
constexpr const auto IMG_TYPES = Utils::MakeSvArray(".bmp", ".png", ".xyz"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: two spaces before ".png"
13ec613
to
a45bad3
Compare
Thanks for the exhaustive testing. I won't respond to all but they all sound reasonable.
Hm I already fixed this one locally, maybe forgot to commit it. But yeah some messages do not fit. I think about implementing a "scrolling" feature that scrolls the text back and forth so the rest is visible.
Yeah I would prefer to have some kind of "hot reloading" here so the audio changes immediately. I just couldn't find a way yet that does not crash xD.
Good idea. This is already required for StringPic so can be exposed. |
Does a program reset, won't work for all MIDI files. Playing a new file will fix it.
Prevents glitches when switching the font in the settings while rendering
Currently lacking sanity checks
Is the last option, disabling it breaks MIDI entirely
Instead of "Open (Sound)Font" emscripten got now "Upload (Sound)Font". Can already see certain game developers demanding that this is patched out but not my problem :P https://easyrpg.org/play/pr3168 Note that live switching between two MIDI devices (e.g. FmMidi to Fluidsynth) is not supported. Such a change requires playing a new MIDI file. |
The option was deleted. This randomly crashed when opening the font list.
This is now ready in case somebody wants to do final testing. The font stuff needs some Android Ui support imo but I will do this in another PR together with the LZH archive support. As you know I hate Android dev so I always do everything in one go 😅 |
(Rebased). I give one more week for feedback. Then going to merge this. |
Changing the volume of the MIDI currently being played in the settings while having the MIDI output set as FluidSynth or FMmidi will not work entirely, since when reloading the music it seems that the volume set is different (tested with the title screen of Wadanohara and the Great Blue Sea - I suspect that the percentage of the volume is relative compared to the percentage that was set in the options when the music started for those two, = if a music starts while your setting is at 10%, the music almost cannot be heard in the end). |
Show FluidLite in settings instead of FluidSynth
…n game is changed
…hile a font is selected. Add cursor animation option to Window class.
Solves errors and lag in the audio settings when the device is opened multiple times
The options are now: - OFF (Do not show) - ON (in titlebar when windowed, inside when fullscreen) - Overlay (show always inside the window) Last option is disabled when fullscreen option is disabled.
The mask looks brighter than in Maniac Patch but at least it does not look corrupted anymore.
… a race condition and silence the track. Fix EasyRPG#3186
…not floats) Use std::fill now which is not this error prone. Solves audio glitches ("pop") when having no BGM (or MidiOut) and a sound effect ends.
The MIDI volume issue is fixed now. Forgot that the path where I adjusted the volume is used by all MIDI code, not just MidiOut. The volume does still not perfectly match though. Good enough imo. Also this took me faaaar too long to figure out (2 hours -_-) but I finally solved this "pop" issue you get when only using MIDI out for BGM and a sound effect ends... |
This only stretches vertically because it was initially invented for Android. When you stretch in both directions it will look very interesting in Portrait orientation. :) |
Will merge this on Sunday when no further issues arise as this is slowly becoming a blocker for my other PRs. |
Pause when focus lost is now a setting, not a compile time option:
More Audio options
Information about MIDI drivers
The soundfont can be selected
Font configuration with preview: