Commit Graph

1033 Commits

Author SHA1 Message Date
Torbjörn Andersson
890808fa4b Rewrote to get rid of "condition is always false" warning.
svn-id: r35639
2008-12-31 15:23:08 +00:00
Filippos Karapetis
c7a2121add Added possible FIXMEs
svn-id: r35637
2008-12-31 15:09:32 +00:00
Filippos Karapetis
a8a4ba3a98 Prevent erroneous access of negative array indices
svn-id: r35633
2008-12-31 14:49:53 +00:00
Max Horn
6a2778cccc Fixed warning
svn-id: r35630
2008-12-31 13:59:00 +00:00
Torbjörn Andersson
6f24756a15 Fixed GCC warning.
svn-id: r35628
2008-12-31 13:05:26 +00:00
Filippos Karapetis
136390a540 Commented out part of the code that corrupts the heap for me
svn-id: r35627
2008-12-31 13:00:09 +00:00
Filippos Karapetis
cae6bdac08 Preliminary Shorten audio support for SAGA 2 games. It's still very wrong and needs further work, but it's a start
svn-id: r35626
2008-12-31 11:46:21 +00:00
Jordi Vilalta Prat
b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Jordi Vilalta Prat
c4f33dfb86 Custom percussion instruments for the AdLib MIDI driver (Slightly modified patch #2357165)
svn-id: r35439
2008-12-19 16:21:27 +00:00
Johannes Schickel
5fa38662e2 Whoops. Fix accidently wrong evaluation statement.
svn-id: r35337
2008-12-13 12:56:53 +00:00
Johannes Schickel
223a57a563 Cleanup.
svn-id: r35336
2008-12-13 12:45:53 +00:00
Johannes Schickel
9555ea8bc9 Fix for bug #2423449 "AGOS: Music Looping broken (regression)".
svn-id: r35335
2008-12-13 12:31:39 +00:00
Sven Hesse
052e83cd24 Okay, removing my implementation of AppandableAudioStream::getTotalPlayTime (I've apparently misunderstood its intent) and using Mixer::getSoundElapsedTime() instead
svn-id: r35317
2008-12-12 17:12:05 +00:00
Max Horn
59dc18d9ef cleanup
svn-id: r35214
2008-12-03 10:59:06 +00:00
Sven Hesse
30b6294d38 Apparently, constraining the number of mixing samples to be divisible by 4 is too strict, so I'm changing readBufferTinsel6() around a bit to allow for any number of samples (at the cost of adding 2 variables and a bit complexity ;))
svn-id: r35209
2008-12-02 21:58:48 +00:00
Johannes Schickel
2ebe04ac3e - Extended MidiDriver::sysEx to allow 264 byte sysEx messages
- Updated all drivers to allow 264+2 byte sysEx messages
- Implemented sysEx processing for MT-32 for Kyra1 and HoF. MT-32 should now be working properly.

svn-id: r35180
2008-11-30 04:42:30 +00:00
Johannes Schickel
893a79b01d Initial version of proper MIDI support for KYRA.
svn-id: r35174
2008-11-30 01:53:32 +00:00
Robin Watts
8f3b2e9b4d Remove warnings from NDS build.
svn-id: r35172
2008-11-29 18:01:16 +00:00
Max Horn
dd14e46698 Fixed a warning on the DS build, added some clarifying comments, reformatted the okiStepSize and imaStepTable tables (the former really is a subtable of the latter)
svn-id: r35106
2008-11-17 11:10:34 +00:00
Max Horn
1067a2ec77 Factoring shared code of template classes into a shared base class saves another 4-7kb code size
svn-id: r35104
2008-11-17 11:09:23 +00:00
Max Horn
be0f709be9 Saving 32kb DATA size
svn-id: r35103
2008-11-17 11:07:04 +00:00
Sven Hesse
b1fa413ed4 Implementing getTotalPlayTime() for AppendableMemoryStream
svn-id: r35098
2008-11-16 20:34:31 +00:00
Sven Hesse
24131d781a Added support for the ADPCM used in Discworld 2
svn-id: r35089
2008-11-15 19:40:01 +00:00
Johannes Schickel
cd5a85036d Fixed compiling of MT32 emulator with -O2 and -Werror.
svn-id: r35040
2008-11-13 11:41:25 +00:00
Max Horn
0c501d303f Verify sanity of LinearMemoryStream params in the factory function instead of the constructor (which is replicated for each instantiation of the LinearMemoryStream template class) -> saves some bytes
svn-id: r35014
2008-11-12 12:25:26 +00:00
Torbjörn Andersson
2bbc958373 Made getSoundElapseTime() work better when the sound has been paused. A new
variable, _pauseTime, keeps track of how long the sound has been paused since the
last mixer time stamp.

svn-id: r34955
2008-11-09 13:28:59 +00:00
Torbjörn Andersson
f71e1077e0 Fixed compile error.
svn-id: r34907
2008-11-05 21:10:12 +00:00
Max Horn
f32be87633 Turned enum PluginError into Common::Error, which in the future is to be used in more places. Help with this is highly welcome
svn-id: r34906
2008-11-05 17:24:56 +00:00
Max Horn
655ce26b3f Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
svn-id: r34514
2008-09-13 16:51:46 +00:00
Max Horn
0378201ec7 MT32 emu: eof -> eos
svn-id: r34390
2008-09-06 20:36:47 +00:00
Nicola Mettifogo
12106a1599 Removed useless dependencies from common/file.h in common code. When complete removal was not possibile, dependency has been pushed to the cpp files from the headers.
svn-id: r34343
2008-09-05 11:41:39 +00:00
Max Horn
5c72c2fca7 Removed unused readLine code from the MT-32 emu
svn-id: r34314
2008-09-03 17:46:42 +00:00
Max Horn
55a05dc0f4 Some cleanup by peres
svn-id: r34308
2008-09-03 15:22:19 +00:00
Filippos Karapetis
2d36c08d9f Fix for MSVC warning about ambiguous usage of MIN
svn-id: r34299
2008-09-03 10:10:45 +00:00
Max Horn
8032491381 Fix (?) Solaris detection in some workaround code in the MT-32 emulator
svn-id: r34216
2008-08-30 22:26:16 +00:00
Max Horn
31320430de Partial commit of patch #2012839: Atari Patch for adding Native MIDI and Fix Compile
svn-id: r34194
2008-08-27 18:52:21 +00:00
Torbjörn Andersson
d08c3ba66b Committed my patch #2040074 ("XMIDI callback control events"). At the moment, I'm
not aware of any game that actually uses this XMIDI feature, so its primary
function right now is to silence lots of warnings while running the DOS version
of Simon the Sorcerer 2.

svn-id: r33763
2008-08-10 17:59:42 +00:00
Max Horn
fb122a08eb Print a warning if unsupported XMIDI controllers are used
svn-id: r33495
2008-08-01 16:31:40 +00:00
Max Horn
0be985ce83 Changed class File (and derived classes) to only support read-only access; added a new class DumpFile for writing
svn-id: r33412
2008-07-29 16:09:10 +00:00
Max Horn
d24e770605 cleanup / code formatting
svn-id: r32973
2008-07-09 10:42:47 +00:00
Torbjörn Andersson
c2c4963e96 On reading some more about XMIDI, I believe the NEXT and BREAK variants of the
controller are mutually exclusive cases, i.e. a BREAK simply means forget about
the innermost loop, and continue as if nothing had happened.

svn-id: r32966
2008-07-08 16:25:39 +00:00
Torbjörn Andersson
ae026486ef Fixed silly error. The NEXT_BREAK event should, of course, jump to the event
*after* the FOR_LOOP event. Apart from simplifying things, this should allow
limited number of repeats to work.

svn-id: r32931
2008-07-06 19:25:32 +00:00
Torbjörn Andersson
1cc9af6b10 Implemented Good Enough(TM) XMIDI looping. This is used by Kyrandia 2 (the
loop hack is no longer needed, and has been removed), and will be used by
Discworld.

svn-id: r32930
2008-07-06 18:37:52 +00:00
Max Horn
c45d632f3b Patch ##1956946 (Audio::Mixer internal API revision) with some tweaks
svn-id: r32828
2008-06-28 15:28:29 +00:00
Johannes Schickel
d2ce912989 Fixed getTotalPlayTime implementation for MP3InputStream.
svn-id: r32755
2008-06-22 13:26:22 +00:00
Jordi Vilalta Prat
8eac356946 Added initial interface to list music devices and their types
svn-id: r32695
2008-06-13 16:04:43 +00:00
Jordi Vilalta Prat
177993b145 Renamed MIDI plugins to Music plugins
svn-id: r32693
2008-06-13 14:30:47 +00:00
Max Horn
33fd755a0e use kMaxChannelVolume instead of hardcoding 255
svn-id: r32666
2008-06-11 11:29:34 +00:00
Max Horn
63cb8227d3 Avoid some warnings when compiling in non-DEBUG mode (i.e. with assert() disabled)
svn-id: r32435
2008-05-31 19:35:37 +00:00
Johannes Schickel
9d13d90d4f - Cleanup code for FlacInputStream::getTotalPlayTime
- Reset input stream position in MP3InputStream after calculating total play time

svn-id: r32323
2008-05-27 13:28:47 +00:00