164 Commits

Author SHA1 Message Date
Max Horn
6c854f30da PSP: Whitespace fix (and rewrap overlong line for readability)
svn-id: r50129
2010-06-21 21:37:00 +00:00
Yotam Barnoy
65fe8d817c PSP: moved RTC to singleton to allow usage by classes other than Osystem
svn-id: r50116
2010-06-21 15:13:36 +00:00
Yotam Barnoy
b5a25a6e19 PSP: errors from both ScummVM and the PSP port now print to file by default. This should make debugging easier, especially for users.
svn-id: r50113
2010-06-21 13:58:51 +00:00
Yotam Barnoy
57b8e2caaa PSP: removed default 'using ME' message
svn-id: r50112
2010-06-21 13:23:13 +00:00
Yotam Barnoy
3c857be0c5 PSP: switched loader to use PSP's debug mechanism
svn-id: r50111
2010-06-21 11:51:19 +00:00
Yotam Barnoy
e7e8808aff PSP: got rid of SDL
svn-id: r49903
2010-06-16 09:04:27 +00:00
Yotam Barnoy
a21b9c7b96 PSP: fixed up PowerManager and removed dependency on SDL
svn-id: r49852
2010-06-15 13:10:00 +00:00
Max Horn
703f0ca29c SYSTEM: Unify OSystem::getSupportedFormats() signature
svn-id: r49838
2010-06-15 12:21:08 +00:00
Yotam Barnoy
0fe65d3e5f PSP: fixed invisible bug in power callback
svn-id: r49756
2010-06-15 10:36:53 +00:00
Yotam Barnoy
ff66c67439 PSP: fixed SCI freeze issue by using recursive mutexes
svn-id: r49682
2010-06-15 06:30:49 +00:00
Yotam Barnoy
25c7dc08b1 PSP: fixed bug in hardware MP3 that caused crash in broken sword. The sample rate must be returned from our member variable, not from the header value which disappears.
svn-id: r49680
2010-06-15 05:34:37 +00:00
Yotam Barnoy
d89da56f47 PSP: swapped order of checks in renderAll. It's a little cheaper this way.
svn-id: r49574
2010-06-10 14:01:30 +00:00
Yotam Barnoy
c8ee854600 PSP: switched to psp semaphores rather than SDL's. Removal of SDL is almost complete.
svn-id: r49572
2010-06-10 13:41:29 +00:00
Yotam Barnoy
f770156dcc PSP: fixed missing frame issue with kyrandia and possibly other games by calling updateScreen() from pollEvent() once in a while
svn-id: r49541
2010-06-09 14:15:51 +00:00
Yotam Barnoy
356728dab7 PSP: found bug in fast getMillis() implementation. Fixed it by adding a fixed amount to the time counter.
svn-id: r49485
2010-06-07 13:47:27 +00:00
Yotam Barnoy
6884ffc291 PSP: added preliminary support for using ME hardware to play MP3 files. If the decoder fails to load, MAD is used instead. Disable with DISABLE_PSP_MP3.
svn-id: r49319
2010-05-30 09:47:00 +00:00
Yotam Barnoy
5f53683cab PSP: fixed a screen shake bug
svn-id: r49258
2010-05-27 06:21:37 +00:00
Yotam Barnoy
1caf98700b PSP: to fix the audio, I cleaned up the audio thread and changed the thread priorities.
svn-id: r49200
2010-05-24 18:20:16 +00:00
Yotam Barnoy
55e29af78a PSP: switched to using slightly faster delay and getMillis
svn-id: r49179
2010-05-24 11:41:45 +00:00
Yotam Barnoy
cfbf1a8a67 PSP: turn off psp audio thread again. Must have tested it wrong.
svn-id: r49178
2010-05-24 09:19:40 +00:00
Yotam Barnoy
87eb782496 PSP: switched to the way SDL does things in the audio thread to get rid of clicking. PSP's thread is still more efficient.
svn-id: r49175
2010-05-24 06:57:58 +00:00
Yotam Barnoy
50847c02a6 PSP: moved timer thread to backends/timer/psp
svn-id: r49173
2010-05-24 03:05:17 +00:00
Yotam Barnoy
734042a32c PSP: commented out new PSP audio. Still has some clicking issues
svn-id: r49169
2010-05-23 19:32:56 +00:00
Yotam Barnoy
e5d239b779 PSP: changed thread stack sizes to prevent crashes in COMI
svn-id: r49168
2010-05-23 19:31:38 +00:00
Yotam Barnoy
e321e25514 PSP: forgot to add a file
svn-id: r49162
2010-05-23 17:35:31 +00:00
Yotam Barnoy
20c654f63b PSP: replaced SDL's timer with much simpler and more efficient PspTimer class
svn-id: r49155
2010-05-23 11:48:21 +00:00
Yotam Barnoy
7a6a2a62ee PSP: switched from SDL's audio to my own thread. Removed needless blocking while playing and made it generally more efficient. To deactivate, simply comment out USE_PSP_AUDIO
svn-id: r49149
2010-05-23 05:51:32 +00:00
Yotam Barnoy
23eae4e139 PSP: Had to switch to different way of using callbacks as last one wasn't working well. Seems to be working well this way, so I activated it. If need be, deactivate it by commenting out USE_DISPLAY_CALLBACK
svn-id: r49115
2010-05-20 10:36:54 +00:00
Yotam Barnoy
8b59e45e6e PSP: added option for render by callback and fixed up and cleaned up debug mechanism. This allows for about 4% speedup since we no longer need to wait for VSYNC in our main thread. I'll activate it as soon as I've tested it out properly.
svn-id: r49055
2010-05-17 07:22:26 +00:00
Joost Peters
9891932d56 Add back README.PSP
svn-id: r49052
2010-05-16 18:05:47 +00:00
Yotam Barnoy
dd8aa85eb5 PSP: fixed debug function. Compiler optimization was calling the destructor before the end of the function, causing incorrect stack output.
svn-id: r49013
2010-05-12 14:11:28 +00:00
Andre Heider
a3e428f6db Rename DISABLE_*SCALERS to USE_*SCALERS, and move the mk/cpp defines to configure.
svn-id: r48977
2010-05-09 11:00:17 +00:00
Yotam Barnoy
5cb9f7ca2e PSP: added profiling support to custom makefile for ease of use
svn-id: r48826
2010-04-28 14:13:19 +00:00
Yotam Barnoy
6ccdb3cba0 PSP: Added support for profiling using configure:
svn-id: r48804
2010-04-26 12:12:42 +00:00
Max Horn
516fd1dc76 PSP: Cleanup trace.h a bit
svn-id: r48802
2010-04-26 10:28:38 +00:00
Yotam Barnoy
731a9eda68 PSP: A couple of small fixes to the debugging support
svn-id: r48793
2010-04-25 15:14:57 +00:00
Yotam Barnoy
f036b6b9d2 PSP:Implemented fingolfin's suggestion for cleaning up debugging code
svn-id: r48792
2010-04-25 15:12:24 +00:00
Joost Peters
f966f3184f add const keyword to some methods
svn-id: r48639
2010-04-12 10:19:35 +00:00
Max Horn
fc40276ed7 formatting
svn-id: r48638
2010-04-12 09:14:37 +00:00
Max Horn
87028c546f PSP: Fix code formatting using astyle
svn-id: r48634
2010-04-12 07:28:54 +00:00
Yotam Barnoy
9a2eac7eee PSP: refactoring/redesign of the backend
svn-id: r48632
2010-04-12 06:49:05 +00:00
Johannes Schickel
40562798d6 Fix our DECLARE_SINGLETON macro to conform to the C++ specs.
We need to use a namespace Common { } there to make strict C++ compilers
like clang++ and comeau happy. I also added a slight comment about why
that is needed to the macro definition and a note that you need to use
it from the global namespace.

svn-id: r48254
2010-03-13 21:55:49 +00:00
Max Horn
9b837d66d4 Replace Audio::MixerImpl::setOutputRate with a new 'sampleRate' param to the MixerImpl constructor
svn-id: r48238
2010-03-11 23:39:51 +00:00
Max Horn
c97ee14a65 Remove last traces of OSystem::getOutputSampleRate()
svn-id: r48229
2010-03-10 21:01:44 +00:00
Jordi Vilalta Prat
22e5a557b7 Added the svn:keywords property to some files missing it.
svn-id: r48148
2010-02-27 17:02:58 +00:00
Max Horn
8ac5d00d57 Hide ZipArchive implementation, only expose it via factory functions: makeZipArchive()
svn-id: r48040
2010-02-13 11:56:30 +00:00
Johannes Schickel
709bf1214c Strip trailing whitespaces/tabs in documentation files too.
svn-id: r47543
2010-01-25 01:53:32 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Torbjörn Andersson
0be507e9c3 Silenced two more trivial cppcheck warnings.
svn-id: r47493
2010-01-24 08:19:15 +00:00
Torbjörn Andersson
4818467908 Silenced some more cppcheck warnings. Some of these may seem silly, but the way
I figure it the changes are harmless at worst, and making them will make it
easier to find real errors in the (still quite long) list of warnings.

svn-id: r47443
2010-01-22 19:05:02 +00:00