mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 22:52:34 +01:00
byuu says: Changelog: - emulator/audio: added the ability to change the output frequency at run-time without emulator reset - tomoko: display video synchronize option again¹ - tomoko: Settings→Configuration expanded to Settings→{Video, Audio, Input, Hotkey, Advanced} Settings² - tomoko: fix default population of audio settings tab - ruby: Audio::frequency is a double now (to match both Emulator::Audio and ASIO)³ - tomoko: changing the audio device will repopulate the frequency and latency lists - tomoko: changing the audio frequency can now be done in real-time - ruby/audio/asio: added missing device() information, so devices can be changed now - ruby/audio/openal: ported to new API; added device selection support - ruby/audio/wasapi: ported to new API, but did not test yet (it's assuredly still broken)⁴ ¹: I'm uneasy about this ... but, I guess if people want to disable audio and just have smooth scrolling video ... so be it. With Screwtape's documentation, hopefully that'll help people understand that video synchronization always breaks audio synchronization. I may change this to a child menu that lets you pick between {no synchronization, video synchronization, audio synchronization} as a radio selection. ²: given how much more useful the video and audio tabs are now, I felt that four extra menu items were worth saving a click and going right to the tab you want. This also matches the behavior of the Tools menu displaying all tool options and taking you directly to each tab. This is kind of a hard change to get used to ... but I think it's for the better. ³: kind of stupid because I've never seen a hardware sound card where floor(frequency) != frequency, but whatever. Yay consistency. ⁴: I'm going to move it to be event-driven, and try to support 24-bit sample formats if possible. Who knows which cards that'll fix and which cards that'll break. I may end up making multiple WASAPI drivers so people can find one that actually works for them. We'll see.
81 lines
3.2 KiB
C++
81 lines
3.2 KiB
C++
struct AboutWindow : Window {
|
|
AboutWindow();
|
|
|
|
VerticalLayout layout{this};
|
|
Canvas canvas{&layout, Size{399, 95}, 15};
|
|
HorizontalLayout informationLayout{&layout, Size{~0, 0}};
|
|
Label informationLeft{&informationLayout, Size{~0, 0}, 3};
|
|
Label informationRight{&informationLayout, Size{~0, 0}};
|
|
};
|
|
|
|
struct Presentation : Window {
|
|
Presentation();
|
|
auto updateEmulator() -> void;
|
|
auto clearViewport() -> void;
|
|
auto resizeViewport(bool resizeWindow = true) -> void;
|
|
auto toggleFullScreen() -> void;
|
|
auto loadShaders() -> void;
|
|
|
|
MenuBar menuBar{this};
|
|
Menu libraryMenu{&menuBar};
|
|
Menu systemMenu{&menuBar};
|
|
Menu inputPort1{&systemMenu};
|
|
Menu inputPort2{&systemMenu};
|
|
Menu inputPort3{&systemMenu};
|
|
MenuSeparator systemMenuSeparatorPorts{&systemMenu};
|
|
MenuItem reloadSystem{&systemMenu};
|
|
MenuItem unloadSystem{&systemMenu};
|
|
Menu settingsMenu{&menuBar};
|
|
Menu videoScaleMenu{&settingsMenu};
|
|
MenuItem videoScaleSmall{&videoScaleMenu};
|
|
MenuItem videoScaleMedium{&videoScaleMenu};
|
|
MenuItem videoScaleLarge{&videoScaleMenu};
|
|
Menu videoEmulationMenu{&settingsMenu};
|
|
MenuCheckItem blurEmulation{&videoEmulationMenu};
|
|
MenuCheckItem colorEmulation{&videoEmulationMenu};
|
|
MenuCheckItem scanlineEmulation{&videoEmulationMenu};
|
|
Menu videoShaderMenu{&settingsMenu};
|
|
MenuRadioItem videoShaderNone{&videoShaderMenu};
|
|
MenuRadioItem videoShaderBlur{&videoShaderMenu};
|
|
Group videoShaders{&videoShaderNone, &videoShaderBlur};
|
|
MenuSeparator videoSettingsSeparator{&settingsMenu};
|
|
MenuCheckItem synchronizeVideo{&settingsMenu};
|
|
MenuCheckItem synchronizeAudio{&settingsMenu};
|
|
MenuCheckItem muteAudio{&settingsMenu};
|
|
MenuCheckItem showStatusBar{&settingsMenu};
|
|
MenuSeparator settingsSeparator{&settingsMenu};
|
|
MenuItem showVideoSettings{&settingsMenu};
|
|
MenuItem showAudioSettings{&settingsMenu};
|
|
MenuItem showInputSettings{&settingsMenu};
|
|
MenuItem showHotkeySettings{&settingsMenu};
|
|
MenuItem showAdvancedSettings{&settingsMenu};
|
|
Menu toolsMenu{&menuBar};
|
|
Menu saveQuickStateMenu{&toolsMenu};
|
|
MenuItem saveSlot1{&saveQuickStateMenu};
|
|
MenuItem saveSlot2{&saveQuickStateMenu};
|
|
MenuItem saveSlot3{&saveQuickStateMenu};
|
|
MenuItem saveSlot4{&saveQuickStateMenu};
|
|
MenuItem saveSlot5{&saveQuickStateMenu};
|
|
Menu loadQuickStateMenu{&toolsMenu};
|
|
MenuItem loadSlot1{&loadQuickStateMenu};
|
|
MenuItem loadSlot2{&loadQuickStateMenu};
|
|
MenuItem loadSlot3{&loadQuickStateMenu};
|
|
MenuItem loadSlot4{&loadQuickStateMenu};
|
|
MenuItem loadSlot5{&loadQuickStateMenu};
|
|
MenuSeparator toolsMenuSeparator{&toolsMenu};
|
|
MenuItem cheatEditor{&toolsMenu};
|
|
MenuItem stateManager{&toolsMenu};
|
|
MenuItem manifestViewer{&toolsMenu};
|
|
Menu helpMenu{&menuBar};
|
|
MenuItem documentation{&helpMenu};
|
|
MenuItem about{&helpMenu};
|
|
|
|
FixedLayout layout{this};
|
|
Viewport viewport{&layout, Geometry{0, 0, 1, 1}};
|
|
|
|
StatusBar statusBar{this};
|
|
};
|
|
|
|
extern unique_pointer<AboutWindow> aboutWindow;
|
|
extern unique_pointer<Presentation> presentation;
|