Commit graph

2358 commits

Author SHA1 Message Date
Andrea Odetti
6d4dd11f06 Audio: remove useless workaround 1/3 1/4 and initial silence.
Let AW's adaptive algorithm do it all.
Just be careful not writing too much to SDL as it would unsettle AW.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-20 20:23:10 +00:00
Andrea Odetti
48146f4c34 Keep track of actual speed to ensure emulated CPU goes at the right speed (and keeps audio on track).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-20 15:32:35 +00:00
Andrea Odetti
ad335e2a5c Merge remote-tracking branch 'upstream/master' 2020-11-20 11:51:41 +00:00
tomcw
d6a2339ff0 Coverity SA: Fixed the 2 new Impact=High issues:
. CID 1499553: UNINIT
. CID 1499560: OVERRUN (out of bounds access in CmdBookmarkAdd)
Fixed bug in CmdBookmarkClear() too.
2020-11-17 21:31:57 +00:00
Andrea Odetti
7a9ed38326 Follow upstream capitalisation of AppleWin.cpp.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-15 15:44:06 +00:00
Andrea Odetti
31d87f5a9c Merge remote-tracking branch 'upstream/master' 2020-11-15 15:42:44 +00:00
Andrea Odetti
8c71b946b4 Prefer mean over average.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-15 14:47:51 +00:00
Andrea Odetti
e58b547d59 Fix actual vs expected clock. 2020-11-14 20:42:27 +00:00
Andrea
0511128fea
Merge pull request #13 from audetto/threads
Threads
2020-11-14 20:36:14 +00:00
Andrea Odetti
7add40d913 Better logging layout.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-14 20:09:12 +00:00
Andrea Odetti
c7f8bf1280 Handle volume in SDL.
Make volume loglinear everywhere.
Reduce default volume to avoid annoying loud reset beep.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-14 20:08:37 +00:00
tomcw
38347cfba8 Removed legacy VS sln/proj files for VS2013, VS2015 and VS2017 (#693) 2020-11-14 16:49:25 +00:00
tomcw
f35f1e7fda DiskII: only call CpuCalcCycle() at start of disk IORead()/IOWrite() routines 2020-11-14 14:54:39 +00:00
Andrea Odetti
70969a2d03 Add ability to select SDL driver.
On a Pi3 opengles2 performs better.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-14 11:01:05 +00:00
Andrea Odetti
e7e848917b Reduce extra verbose logging of keys.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-14 09:32:51 +00:00
Andrea Odetti
78a7c98c3e Improve SDL debug info.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-14 09:29:21 +00:00
Andrea Odetti
4840b7b0ac Improve logging diagnostics.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-14 09:14:37 +00:00
Andrea Odetti
169188b2b4 Improve stat logging.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-13 20:12:57 +00:00
Andrea Odetti
67df88d9a2 Fix std calculation.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-13 20:12:01 +00:00
Andrea Odetti
cbe10854b9 Add timers (to see what happens).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-13 15:37:10 +00:00
Andrea Odetti
1588f1cb05 Fix -h for --help.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-13 12:00:42 +00:00
Andrea Odetti
f13816262d Clean up multithreading code and offer it via command line options.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-13 11:51:20 +00:00
tomcw
6f38260b10 Renamed Applewin.cpp to AppleWin.cpp 2020-11-12 20:59:22 +00:00
tomcw
da383033a1 VS2008: fixed after recent include changes 2020-11-12 20:55:28 +00:00
Andrea Odetti
ef114f9e64 Make the mutex protect AW rather than SDL.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-12 20:48:44 +00:00
Andrea Odetti
6a16d416a4 threads 2 2020-11-12 20:33:04 +00:00
Andrea Odetti
314c647daf more threads 2020-11-12 19:51:45 +00:00
Andrea Odetti
b360d27f22 split 2020-11-12 19:31:35 +00:00
Andrea Odetti
892c6e383f Remove some more diffs wrt AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-12 19:16:35 +00:00
Andrea Odetti
4ff7741a41 Fix previous sdl ppp commit, too messy to revert.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-12 18:52:52 +00:00
Andrea Odetti
c7a8c628e4 Changes required from upstream. 2020-11-12 18:43:04 +00:00
Andrea Odetti
aa473958d0 Merge remote-tracking branch 'upstream/master' into pi
# Conflicts:
#	source/Disk.cpp
#	source/DiskImageHelper.cpp
#	source/DiskImageHelper.h
#	source/Memory.h
#	source/MouseInterface.cpp
2020-11-12 18:30:39 +00:00
tomcw
bd1d65ce4f Renamed Applewin.h to AppleWin.h across entire project 2020-11-11 22:12:39 +00:00
tomcw
8811651270 CodingConventions.txt: updated for PR #866 2020-11-11 21:56:07 +00:00
Andrea
01ad5d1882
Ensure all header files can be included (in any order) after stdafx.h. (PR #866) 2020-11-11 21:15:27 +00:00
Andrea Odetti
0dda605c36 ppp 2020-11-11 11:20:06 +00:00
tomcw
9cc49af0dc VS2008 vcproj: added DirectInput.cpp/h 2020-11-10 20:47:25 +00:00
Andrea
8cc04e2b86
Cumulative changes required to enable / ease compilation in Linux with gcc. (PR #861)
Split MouseInterface to isolate DirectInput code.
Avoid overflow in platforms where RAND_MAX is a big integer constant.
Fix include files for gcc (where enums cannot be forward declared).
2020-11-10 20:33:55 +00:00
tomcw
3d8acbbc83 Tweaked large PR recommendation 2020-11-08 21:04:43 +00:00
TomCh
dfbd6e457c
Create CONTRIBUTING.md 2020-11-08 16:50:16 +00:00
Andrea Odetti
c2105bfe1f Merge remote-tracking branch 'upstream/master' 2020-11-03 11:50:54 +00:00
tomcw
e6e16a3c0b Removed NSC support for II/II+ models. (#827) 2020-11-02 21:41:02 +00:00
tomcw
3045e77349 Help doc: updated for Ctrl+F3/F4 and -conf <file> 2020-11-02 20:50:53 +00:00
tomcw
8be128159c 1.29.16.0: Updated version & History.txt 2020-11-01 18:20:41 +00:00
tomcw
aa4a3c06d7 RGB Card support: updated help doc 2020-11-01 17:15:16 +00:00
tomcw
1e43b331f3 RGB Card support: treat AppleColor card as an alias of SL7 (#851) 2020-11-01 16:39:53 +00:00
tomcw
fb0871672c RGB card support: (#850)
. removed the precondition for enabling the extra RGB DHIRES modes
. changed IOUDIS soft-switch so that it's for //c only
2020-10-31 16:10:18 +00:00
tomcw
e24436f7ec Fixed issue during TRIBU (cycle-accurate demo) if: Config->uncheck 50Hz & OK, but cancel emulator restart 2020-10-25 21:35:17 +00:00
Andrea Odetti
66ab6dde9d Merge remote-tracking branch 'upstream/master' 2020-10-25 18:45:36 +00:00
tomcw
98b72658b7 1.29.15.0: Updated version, History.txt & help 2020-10-25 18:41:22 +00:00