Commit Graph

1049 Commits

Author SHA1 Message Date
Max Horn
3da8e08c0c Fixed various warnings
svn-id: r15939
2004-11-28 13:10:57 +00:00
Max Horn
540ba778e9 fixed an unsigned comparision warning (does this code really do what you intended it to do?)
svn-id: r15938
2004-11-28 13:09:02 +00:00
Max Horn
3225ae0203 const correctness fix
svn-id: r15937
2004-11-28 13:08:23 +00:00
Jerome Fisher
6d255be202 - More cleanup.
- Another tuning tweak. Sounds better to my ear, but still guesswork.

svn-id: r15934
2004-11-28 07:25:18 +00:00
Jerome Fisher
c5915d19d0 - Now really use g_scummfont everywhere.
svn-id: r15933
2004-11-28 07:08:54 +00:00
Jerome Fisher
2a3b7efc3d - Now uses g_scummfont instead of g_sysfont.
- Added default case to event switch to eliminate compiler warning.

svn-id: r15932
2004-11-28 07:07:15 +00:00
Jerome Fisher
2149e0fc78 - Cleanup. Still waiting for a real MT-32 to check PCM tuning.
svn-id: r15931
2004-11-28 06:03:23 +00:00
Jerome Fisher
39817f91b3 - Tweaked tuning.
svn-id: r15930
2004-11-28 05:42:12 +00:00
Jerome Fisher
077d19f500 - Added graphical representation of initialisation progress. This is quite hacky.
- Initialisation is now interruptible.
- All data is now loaded from MT32_CONTROL.ROM. drumpat.rom, Preset1.syx, Preset2.syx and patchlog.cfg are no longer used.
- Major cleanup. In particular, separated Rhythm part into a new class, instead of dealing with it as a special case everywhere.
- Improved accuracy of pitch key-follow.
- Recaching now happens lazily.
- Changed some right-shifts to divs, due to the former not being arithmetic on some architectures.
- Setting "MT32EMU_ACCURATENOTES" to 1 will generate lookup tables for the exact frequency of every note played. Not recommended.
- Several small bugs fixed.

svn-id: r15929
2004-11-28 05:35:07 +00:00
Max Horn
1a7ca2dc2a AudioStream::read() has been removed quite some time ago, now making sure that change is reflected everywhere
svn-id: r15911
2004-11-27 13:54:09 +00:00
Max Horn
876e738dce Moved Engine::getSavePath() to class SaveFileManager; removed the 'directory' parameter from SaveFileManager::openSavefile and listSavefiles (they always use getSavePath() now, which is what we did anyway)
svn-id: r15901
2004-11-27 00:26:11 +00:00
Max Horn
57f8ae73ce Another one...
svn-id: r15898
2004-11-26 21:14:51 +00:00
Max Horn
a0c4e81d74 Trying to fix the WinCE/DC port breakage -- blindfolded, though, hence it probably isn't enough to get things compiling again :-/
svn-id: r15897
2004-11-26 21:10:56 +00:00
Eugene Sandulenko
31e434dcf1 Fix a`ll engines. They work, though current fix is just temporary.
There are plans to add some brains to GameDetector class, which will let us
avoid passing detector to init() method.

svn-id: r15873
2004-11-24 00:14:21 +00:00
Eugene Sandulenko
7877ccf628 Next step in transaction implementation. Now it postpones all calls.
NOTE: This breaks most ports, and they will not pass assertions. If you will
fix it (by moving violating OSystem calls to go() method), I'll be grateful.
If you don't bother to fix it, there is a workaround. Just comment out
beginGFXTransaction() and endGFXTransaction() in backends/sdl/graphics.cpp.
This will tunr it off and will use default transaction-less implementation.

svn-id: r15870
2004-11-23 21:30:38 +00:00
Max Horn
01cb15b9b2 Since we do ref counting on the nodes now, we can re-use the root nodes now
svn-id: r15851
2004-11-21 13:18:07 +00:00
Max Horn
5d9b35510d Changed the FilesystemNode implementation to make it easier to use (client code doesn't have to worry about the memory managment anymore, it's all 'automatic' now). May have introduced a mem leak or two, please check :-)
svn-id: r15848
2004-11-20 21:35:49 +00:00
Jerome Fisher
ea79c9c5e7 - Don't compile inline asm on versions of GCC < 3 (it uses MMX registers, which don't seem to be supported).
svn-id: r15830
2004-11-19 01:39:16 +00:00
Max Horn
525df7cff0 const const const
svn-id: r15825
2004-11-15 23:33:06 +00:00
Jerome Fisher
f08482d0ce - Now uses playInputStream to add a channel to the mixer, instead of setting the premixer. There can be only one, and this conflicted with Adlib in multi_midi mode.
svn-id: r15821
2004-11-15 12:39:08 +00:00
Torbjörn Andersson
73afa3165b This has to be a typo.
svn-id: r15809
2004-11-14 14:58:39 +00:00
Eugene Sandulenko
2fb46f1b95 Make #pragma pack really multiplatform. Old code didn't work on
non-Win32 platforms.

svn-id: r15805
2004-11-14 11:46:29 +00:00
Jerome Fisher
504d54e8ab - Huge cleanup of LUT stuff.
- No longer stores a sawtooth waveform twice, once with each sample negated.
- More graceful handling of truncated waveformcache files.
- Fixed tuning of patterns for non-32KHz sample rates (needs checking).
- Note: Waveform cache format changed, will automatically be rebuilt.

svn-id: r15804
2004-11-14 08:04:56 +00:00
Jerome Fisher
0ed79dfad7 - Prettied up, fixed sign-extension bug.
svn-id: r15803
2004-11-14 07:54:43 +00:00
Jerome Fisher
a158e884a0 - More cleanup.
- Note-on MIDI commands outside the range 12-108 are now raised/lowered by octaves until in range (instead of being ignored).

svn-id: r15802
2004-11-14 04:40:12 +00:00
Jerome Fisher
1aeca6838b MT32 MidiDriver:
- Cleanup

MT32Emu:
- Lots more cleanup.
- Properly implemented pitch bending (not fast, but theoretically perfect).
- Full position delta is now calculated before PCM interpolation/decimation is performed, so that pitch modifiers will be considered.
- Now reports when using SSE or 3DNow, and when the samplerate is invalid.

svn-id: r15801
2004-11-14 04:13:15 +00:00
Jerome Fisher
5e442766e5 MT32 MidiDriver:
- Channels now ignore effectLevel() and chorusLevel(), instead of sending unsupported control change messages to MT32Emu (they're not supported in a real MT-32, either, according to docs).
- Implemented setPitchBendRange() by sending a sysex write command to adjust the patch.
- _outputRate is now hard-coded at 32000, until tuning can be fixed for other sample rates.

MT32EMu:
- Extended File interface to deal with reading/writing 16/32-bit values endian-independently (they're always big-endian on file).
- Improved usage of packing-related pragmas.
- Should now be endian-agnostic (without depending on #defines for the endianness).

svn-id: r15800
2004-11-13 19:24:37 +00:00
James Brown
2ae3166f2d Add new clearScreen OSystem call. Currently only implemented in SDL backend. This call is currently only used for clearing the launcher screen to remove garbage from the main screen before reentering.
svn-id: r15799
2004-11-13 04:33:33 +00:00
Paweł Kołodziejski
22afdfc5c9 renamed file mt32
svn-id: r15794
2004-11-12 11:32:35 +00:00
Paweł Kołodziejski
6f8f614893 renamed file mt32
svn-id: r15793
2004-11-12 11:09:47 +00:00
Jerome Fisher
e4f600ee48 - Minor improvement to failure handling.
svn-id: r15777
2004-11-10 10:50:47 +00:00
Max Horn
cbfa7e3b5c Use the actual output rate of the sound mixer when producing MT32 audio samples -> by default only does 22.5 kHz -> it's now actually almost usable on my machine ;-). Alternative approach might be to hard code 32000 here
svn-id: r15775
2004-11-10 00:25:58 +00:00
Chris Apers
e92da96760 Updated prefix file
svn-id: r15771
2004-11-09 11:56:45 +00:00
Chris Apers
28682e6d09 Major update :
- now modular
- modules are located on memory card and imported to storage memory when needed
- renamed AddArgs(..) -> ArgsAdd
- args related fucntions moved to args.* source files
- make some args passed even if no game was selected
- modules management stuffs

svn-id: r15770
2004-11-09 11:54:16 +00:00
Chris Apers
fd2bde21d3 Init stuffs
svn-id: r15769
2004-11-09 11:50:04 +00:00
Chris Apers
c9c862989a Updated based on last changes
svn-id: r15768
2004-11-09 11:49:07 +00:00
Chris Apers
27449a3254 - ARM call functions moved to init_arm.cpp
- Added new operators
- cleanup

svn-id: r15767
2004-11-09 11:48:12 +00:00
Chris Apers
5fd488b7a0 - operator new moved to extend.h
- bLauched var : to know if we have launched an engine
- new info panel
- sysAppLaunchCustomDeleteEngine : if the back to launcher option is disabled

svn-id: r15766
2004-11-09 11:46:50 +00:00
Chris Apers
2f6670bfcd New options
svn-id: r15765
2004-11-09 11:44:28 +00:00
Chris Apers
c7653da156 Split main resource file into two parts :
- one with launcher only resource
- one with engine only resource
+ new info panel
+ updated game panel

svn-id: r15764
2004-11-09 11:39:34 +00:00
Chris Apers
5fc9d34542 Moved to init_arm.h
svn-id: r15763
2004-11-09 11:35:17 +00:00
Chris Apers
4fb01fd0fd Added Audio button
svn-id: r15762
2004-11-09 11:33:30 +00:00
Chris Apers
0f1a0f80b2 Use the new init stuffs
svn-id: r15761
2004-11-09 11:32:00 +00:00
Chris Apers
48c3ae226c New info panel (formsystem is now part of it)
svn-id: r15760
2004-11-09 11:30:52 +00:00
Chris Apers
e40f30e81a Cleanup
svn-id: r15759
2004-11-09 11:27:15 +00:00
Chris Apers
6854c86eb2 Fixed potential crash
svn-id: r15758
2004-11-09 11:23:49 +00:00
Chris Apers
d890d56502 Cleanup + sword1 support
svn-id: r15757
2004-11-09 11:17:45 +00:00
Chris Apers
54d55f2efd New options :
- lightspeed integration
- return to launcher on exit
+ cleanup

svn-id: r15756
2004-11-09 11:13:50 +00:00
Chris Apers
ef2cc66363 New info panel + new audio skin button
svn-id: r15755
2004-11-09 11:12:59 +00:00
Chris Apers
3bed649682 Added engine selection
svn-id: r15754
2004-11-09 11:11:55 +00:00