Commit Graph

4458 Commits

Author SHA1 Message Date
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 f3b7245ce4 FPS measurement seems to be OK. 2018-05-06 23:51:43 +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 1bb3790e12 Linux builds now use system PNG and ZLIB libraries by default. 2018-04-18 12:29:40 -02:30
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
sa666666 93ba74ad44 Fixed weird characters in Changelog file. 2018-03-27 08:53:33 -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