Commit Graph

2448 Commits

Author SHA1 Message Date
Christian Speckner ae0faaabfc Fix cycle counting in CPU. 2018-05-22 00:18:07 +02:00
Stephen Anthony ec1e65d683 Make Champ Games that use SaveKey use it by default. 2018-05-20 14:33:55 -02:30
Stephen Anthony 02dbbca861 Fixed bug with autodetecting SaveKey controller.
- The cycles were being reset to the current system cycles, when in the old
code they were not being updated at all (other than being normalized when the
old system cycles could be running backwards).
- This change restores behaviour to that in 5.0.2.
2018-05-20 14:33:44 -02:30
Stephen Anthony 2fd1cafc2d Fix [[nodiscard]] warning in VS (applies only to C++17 mode). 2018-05-18 22:56:16 -02:30
Stephen Anthony b8978aa76e Variables declared as uInt64 should be serialized as such. 2018-05-18 22:55:57 -02:30
Christian Speckner ed6eae6a67 Rerender only if there is actual change. 2018-05-17 22:56:07 +02:00
Christian Speckner 639b6af1e9 Fix missing audio reset. 2018-05-16 13:09:50 +02:00
thrust26 adbde4e4db preliminary audio dialog changes 2018-05-15 20:51:29 +02:00
Stephen Anthony cf8f76a0e1 Fix [[nodiscard]] warning in VS (applies only to C++17 mode). 2018-05-12 22:33:15 -02:30
Stephen Anthony dc77f5d5f1 Variables declared as uInt64 should be serialized as such. 2018-05-12 17:04:33 -02:30
Christian Speckner c3766021d8 Add a log message for audio buffer overflow messages. 2018-05-12 16:52:54 +02:00
Christian Speckner f01553bdc7 More audio queue tuning -> less lag. 2018-05-12 16:21:58 +02:00
Christian Speckner 7391c55f9e Documentation, minor optimization. 2018-05-12 13:32:31 +02:00
Stephen Anthony 4c7ad7a0b6 Replace 'new' calls with unique_ptr.
- @DirtHairy, you can revert this if you like, but unless there is some issue, I'd rather use smart pointers with auto-deallocation.
2018-05-11 21:26:22 -02:30
Stephen Anthony 741515a520 Fix minor compile warnings generated by clang:
- mostly change pointer -> 0 to use 'nullptr'
 - some commenting and formatting fixes
2018-05-11 21:01:40 -02:30
Stephen Anthony d624140829 Updated VS project for resampling work, and fixed minor compile error in
Windows.
2018-05-11 20:32:18 -02:30
Christian Speckner 33db8a8b03 Comments. 2018-05-12 00:44:31 +02:00
Christian Speckner ce2d650df4 Update XCode project. 2018-05-12 00:24:02 +02:00
Christian Speckner 0c67bff939 Tuning, TODO 2018-05-12 00:18:09 +02:00
Christian Speckner 2da0ffa2f5 Rework available sampling rates (44100, 44800, 96000), add resampling.quality parameter. 2018-05-12 00:15:29 +02:00
Christian Speckner 1b0fb381d0 Lanczos resampling. 2018-05-11 23:52:00 +02:00
Christian Speckner b329c7ff5f Switch to F32 samples, make volume scale more linear in sound.. 2018-05-10 23:54:52 +02:00
Stephen Anthony cea1c011be Updated Xcode project for resampler classes. 2018-05-08 20:34:46 -02:30
Stephen Anthony 2c38757faa Updated VS project file for resampler classes. 2018-05-08 20:17:48 -02:30
Christian Speckner 3bac41dd46 Factor out resampling. 2018-05-09 00:38:01 +02:00
Stephen Anthony c1679d6883 Fixed VS project file; recreated it from the one in master. 2018-05-08 20:00:10 -02:30
thrust26 1c10e590af fixed missing prefix for "thumb.trapfatal" 2018-05-08 21:29:29 +02:00
thrust26 efbc261128 fixed missed end tag 2018-05-08 16:05:01 +02:00
Christian Speckner ec83fdd158 Update XCode build 2018-05-07 00:06:53 +02:00
Christian Speckner 068dcad4a4 Remove hardcoded limit on sample rate. 2018-05-06 23:50:52 +02:00
Christian Speckner 6cc8a22978 More timing tuning, coding style. 2018-05-06 23:45:21 +02:00
Christian Speckner a58db7e62d Make sure that all audio samples are generated during each timeslice. 2018-05-05 01:08:09 +02:00
Christian Speckner d2c930886b Sanitize and match emulation timing
-> no more perceivable audio latency
-> fewer underruns
2018-05-05 00:47:48 +02:00
Christian Speckner 9079d77de0 Cosmetic changes, add audio todo. 2018-05-02 21:30:38 +02:00
Christian Speckner c905b01fca Merge branch 'master' into feature/precise-audio 2018-04-25 22:49:00 +02:00
Stephen Anthony ddf6ba1089 Add preliminary support for 2600-daptor D9 USB device. 2018-04-01 15:01:03 -02:30
Stephen Anthony a978bb527e Fix compile error when debugger support is disabled. 2018-03-31 20:33:25 -02:30
Christian Speckner b5afa69764 Make coverty happy. 2018-03-30 22:04:42 +02:00
Stephen Anthony 382a39a6c7 More fixes for issues reported by Coverity. 2018-03-30 10:51:56 -02:30
Stephen Anthony 698beaec8b Fixes for various issues reported by Coverity. 2018-03-24 16:58:08 -02:30
Stephen Anthony 524cec907a Updated Windows build to support SDL 2.0.8. 2018-03-24 14:47:18 -02:30
Stephen Anthony 2949821814 Updated OSX project file for EventHandler refactoring. 2018-03-24 14:02:14 -02:30
Stephen Anthony b59cf4f54b Updated VS project file for EventHandler refactoring. 2018-03-24 13:53:24 -02:30
Stephen Anthony 0908a92da1 Continuing with the large refactoring of EventHandler:
- all keyboard-related stuff moved into PhysicalKeyboardHandler class
- all snapshot-related stuff moved directly into PNGLibrary class
- EventHandler class is now ~1300 LOC, which while still large, is much better than 2500 LOC
2018-03-24 12:36:00 -02:30
Stephen Anthony 08ac6b0ff9 Fixed joystick hat not receiving 'CENTER' event (fixes #300). 2018-03-21 18:16:33 -02:30
Stephen Anthony 0cde1ec4b9 Minor refactoring with Controller::isAnalog() usage. 2018-03-18 16:13:28 -02:30
Stephen Anthony 3ce71302b7 Minor updates and commenting for PhysicalJoystickHandler. 2018-03-18 15:58:41 -02:30
Stephen Anthony 9a4b14392b Minor refactoring of Controller class:
- a controller can now answer whether it is intrinsically an analog controller
2018-03-17 20:03:05 -02:30
Stephen Anthony 7eab28b2ef Use smart pointer for joystick in PhysicalJoystickHandler. 2018-03-17 19:44:47 -02:30
Stephen Anthony be23ad7ca7 Updated OSX project file for EventHandler refactoring. 2018-03-17 18:28:40 -02:30
Stephen Anthony 77ba46ec3a Updated VS project file for EventHandler refactoring. 2018-03-17 18:12:31 -02:30
Stephen Anthony 76b6026d30 First pass at reworking EventHandler, splitting it up into more manageable pieces.
For now, joystick-related stuff is moved into its own classes.
No improvements are made yet; just refactoring and moving code around.
This reduces EventHandler from ~2500 lines to ~2000 lines.
2018-03-17 18:00:44 -02:30
Christian Speckner 593ec2fdc9 Make sure that the hardware state is up to date before entering the debugger. 2018-03-13 22:13:35 +01:00
Stephen Anthony c79d86d6a6 Fixed minor compile warnings with gcc 7. 2018-02-15 19:57:17 -03:30
Stephen Anthony 162f7b7501 Add missing locks around Debugger::saveOldState() (fixes #298). 2018-02-15 19:25:54 -03:30
Christian Speckner fbbfa222a0 Fix a detail in audio block simulation -> doctor sounds correct 2018-02-13 23:08:20 +01:00
Christian Speckner c25e7a6b35 Compile fix. 2018-02-12 23:55:14 +01:00
Christian Speckner 5c1bd83904 Merge branch 'master' into feature/precise-audio 2018-02-12 23:32:03 +01:00
Christian Speckner 01c78842d6 Serialization fix. 2018-02-12 23:21:02 +01:00
thrust26 2a3bb4329e load and update existing game specific properties file 2018-02-12 16:47:03 +01:00
Christian Speckner d65ac4875f Minor missile starfield fix. 2018-02-09 00:59:17 +01:00
Christian Speckner b8af22cd67 Fix playfield signal during hblank. 2018-02-08 20:53:42 +01:00
Christian Speckner b30fa0df98 And another collision fix. 2018-02-07 23:13:16 +01:00
Christian Speckner 6b6fb9140f More HMOVE collision fixes. 2018-02-07 23:00:58 +01:00
thrust26 5764a73d89 finalized TimeLineWidget for new UI look 2018-02-07 14:55:43 +01:00
Stephen Anthony e01321fbea Refactor Dialog class containing fonts:
- the previous code has a _font pointer in derived classes, and a _font reference in the base class; this causes name collisions
- the Dialog class now takes a font reference, which is used throughout the hierarchy
- this simplifies certain code (setTitle vs. initTitle) and also eliminates clang warnings
2018-02-06 19:26:49 -03:30
Christian Speckner 07f1051be0 Tentative fixes for collisions during HBLANK. 2018-02-06 23:32:02 +01:00
Stephen Anthony 2874a7c504 Fixed some compiler warnings from clang.
Refactored Stack::replace() to use Stack::applyAll() lambda instead.
2018-02-06 15:11:16 -03:30
sa666666 b84d97cd9a And so it begins again ... 2018-02-06 08:54:35 -03:30
thrust26 d24934d010 spelling 2018-02-06 13:14:40 +01:00
thrust26 ad1d37304e aligned button heights and widths 2018-02-06 13:12:21 +01:00
thrust26 564e014620 removed FLAT_UI code from TimeLineWidget
added toggle mode button to TimeMachineDialog
2018-02-06 12:46:27 +01:00
thrust26 1fa00f2372 initial wind when entering TM dialog causes message now
(TODO: try to propagate key into dialog instead)
2018-02-05 19:57:41 +01:00
thrust26 1569ee1c6b minor code cleanup 2018-02-05 13:45:34 +01:00
thrust26 33756b2481 fixed a little merge error 2018-02-05 13:39:13 +01:00
Christian Speckner 7d7ebb8d03 Merge branch 'master' into feature/precise-audio 2018-02-04 23:50:16 +01:00
Christian Speckner f7c445fb7c Merge branch 'release/5.1' 2018-02-04 23:48:45 +01:00
Christian Speckner ba549e1d8a Improve PF collision handling during hblank. 2018-02-04 23:18:30 +01:00
Stephen Anthony 2bd0d05d44 Bumped version number for 5.1 release. 2018-02-04 18:37:35 -03:30
thrust26 3ab2ddb870 fixed EventHandler logic 2018-02-04 21:00:10 +01:00
Stephen Anthony 6d16790ce8 Fixed minor warning from Xcode. 2018-02-04 16:14:39 -03:30
Stephen Anthony 997751b64f When TimeLineWidget is empty, it now displays as such. 2018-02-04 12:14:23 -03:30
Stephen Anthony f29dcfece1 Refactored TimeLineWidget to use uInt32 throughout:
- this fixes issues with signed vs. unsigned in some areas
- it also self-documents, in that the slider should never use negative values
2018-02-04 11:15:42 -03:30
Stephen Anthony 9e53641add Time machine rewinds are now triggered at the same time as entering the dialog. 2018-02-04 11:14:59 -03:30
thrust26 99e31ac158 fixed time bar issue with no states 2018-02-04 10:14:58 +01:00
Stephen Anthony de56f9cff5 Merge branch 'release/5.1' of github.com:stella-emu/stella into release/5.1 2018-02-03 20:54:05 -03:30
Stephen Anthony 77f2c478a0 Fixed warnings from Xcode (some pretty big issues were caught here) 2018-02-03 20:44:46 -03:30
Stephen Anthony 974c686366 Fixed compiles warnings in VS 2017. 2018-02-03 19:52:14 -03:30
Stephen Anthony 1f1ced0f01 Bumped minimum state version. 2018-02-03 19:30:52 -03:30
Stephen Anthony 26096fcc47 Fixed some warnings, and updates for 5.1 release. 2018-02-03 19:29:27 -03:30
Stephen Anthony 6c5bddcdf8 Time Machine dialog now resizes correctly:
- in 2x mode, it takes up the maximum amount of space
- in larger modes, it takes up the same relative amount of space: ~80% width
2018-02-03 17:27:52 -03:30
Christian Speckner 803b85343a Tuning. 2018-02-03 01:23:19 +01:00
Christian Speckner cb89d09c7f Refactoring: remove framerate from OSystem and Console. 2018-02-03 01:01:02 +01:00
thrust26 f4db8e4816 fixed zoom settings via hotkey (made persistent again) 2018-02-02 22:51:22 +01:00
thrust26 9d72ae2c4e reordered OptionsDialog to match next release
updated docs accordingly
2018-02-02 15:55:27 +01:00
thrust26 cbeeda6f55 added tickmarks to TimeLineWidget (5 intervals)
replaced 3d box with rect for TimeLineWidget
2018-02-02 13:05:41 +01:00
Stephen Anthony 883a9249b1 Fixed inverted subtraction in the previous commit. 2018-02-01 19:52:32 -03:30
Stephen Anthony c18bcbc39b TimeLineWidget mouse handling is now complete. 2018-02-01 19:03:17 -03:30
thrust26 97a0638845 Added (fixed) tickmark intervals to SliderWidget 2018-02-01 18:21:57 +01:00
thrust26 6d1c5b1301 removed +/-10 buttons for TimeMachineDialog
updated documentation
2018-02-01 11:18:05 +01:00