Commit Graph

823 Commits

Author SHA1 Message Date
Filippos Karapetis
8606982590 Moved the Shorten decoder inside the SAGA engine, as it's the only one using it (and it's still unfinished, too)
svn-id: r47592
2010-01-27 08:40:48 +00:00
Max Horn
1565f14bc1 Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
svn-id: r47579
2010-01-26 22:48:45 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn
4b996e7de7 Reorder params to Audio::makeRawMemoryStream
svn-id: r47492
2010-01-23 23:55:35 +00:00
Filippos Karapetis
18a18701f7 Disabled the unused resource loading code for the unsupported QT MIDI format, used in the Mac version of IHNM
svn-id: r47474
2010-01-23 13:46:43 +00:00
Torbjörn Andersson
1928a7ba38 Silenced some cppcheck warnings.
svn-id: r47427
2010-01-21 23:05:33 +00:00
Max Horn
7799dc3614 SAGA: Change Sound::playSoundBuffer to enable looping for all sound formats
svn-id: r47405
2010-01-20 12:43:59 +00:00
Max Horn
cebaa0b0d3 Started to get rid of Audio::FLAG_LOOP
svn-id: r47397
2010-01-19 23:50:33 +00:00
Max Horn
dc5e08e623 Move raw audio flags from sound/mixer.h to sound/raw.h
svn-id: r47395
2010-01-19 22:30:33 +00:00
Max Horn
5ee6c79b5d Convert more engines from Mixer::playRaw to Mixer::playInputStream
svn-id: r47377
2010-01-19 11:22:14 +00:00
Max Horn
d2dd5a569a SAGA: Move from Mixer::playRaw to playInputStream; add FIXME regarding sounds not being looped
svn-id: r47376
2010-01-19 11:21:25 +00:00
Max Horn
557bb394de Get rid of Mixer::FLAG_AUTOFREE.
Also fix several recently introduced new/delete vs. malloc/free mismatches.

svn-id: r47369
2010-01-19 00:56:29 +00:00
Max Horn
69be747621 Move raw audio streams to new header sound/raw.h
svn-id: r47368
2010-01-19 00:54:06 +00:00
Max Horn
349fcd1d71 Rename 'Linear' audio streams to 'raw'
svn-id: r47367
2010-01-19 00:52:41 +00:00
Max Horn
7ec2da968c Switch most AudioStream factories to use DisposeAfterUse::Flag
svn-id: r47334
2010-01-16 21:36:08 +00:00
Johannes Schickel
0d995c5920 Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc.
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)

This commit does not touch "adlib" and "ADLIB" uses!

Also it does not update all the SCUMM detection entries, which still use "Adlib".

svn-id: r47279
2010-01-12 21:07:56 +00:00
Eugene Sandulenko
59d4f14f39 Fix bug #2929619: "IHNM: Small problem detecting German version"
svn-id: r47255
2010-01-11 19:22:19 +00:00
Johannes Schickel
0447a7f9f8 Fix a memory leak.
svn-id: r47227
2010-01-10 15:23:35 +00:00
Johannes Schickel
6ca0570fe3 - Add a SubLoopingAudioStream, which loops a nested part of a stream and thus features the same looping capabilites as LinearMemoryStream and LinearDiskStream.
- Remove custom looping code from LinearMemoryStream and LinearDiskStream.
- Adapt various client code to the changes.

svn-id: r47226
2010-01-10 15:20:14 +00:00
Max Horn
f720d99b0a Switch Mixer::playInputStream to use DisposeAfterUse::Flag
svn-id: r47182
2010-01-08 22:09:43 +00:00
Max Horn
0cf53b025d Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
svn-id: r47180
2010-01-08 22:07:35 +00:00
Johannes Schickel
616e4626f5 Since AudioStream looping is no longer handled by the Mixer, drop Mixer::playAudioStreamLooping. (There's Audio::makeLoopingAudioStream).
svn-id: r47160
2010-01-08 16:27:29 +00:00
Johannes Schickel
84f3034406 - Move openStreamFile from AudioStream to SeekableAudioStream.
- Fix documentation of openStreamFile.

svn-id: r47080
2010-01-06 15:23:33 +00:00
Johannes Schickel
fb9017c51e Adapt SAGA to use Mixer::playAudioStreamLooping instead of relying the depracted in AudioStream looping support.
svn-id: r47063
2010-01-06 00:00:50 +00:00
Eugene Sandulenko
aaf66f20ef Implement FR #2827944: "SAGA: Hide in-game GUI on thumbnails"
svn-id: r46879
2010-01-02 11:03:12 +00:00
Eugene Sandulenko
be1d586cd5 Removing now redundant comment. The fix was correct.
svn-id: r46868
2010-01-02 00:22:46 +00:00
Johannes Schickel
6385e77d85 Fix undefined operation in setNoPendingVerb (someone with knowledge of SAGA should review this, see the TODO comment). (Thanks to syke for reporting this)
svn-id: r46848
2010-01-01 20:37:02 +00:00
Filippos Karapetis
ed41d797ef Wrapped some IHNM-specific code around appropriate ifdef's
svn-id: r46749
2009-12-30 15:24:16 +00:00
Andrew Kurushin
9511b474dc fix resource refactor regression
svn-id: r46659
2009-12-27 20:56:10 +00:00
Eugene Sandulenko
49c41a0c6c Fix detection for ITE Floppy Italian
svn-id: r46537
2009-12-24 21:36:57 +00:00
Eugene Sandulenko
963dc5f142 Add more information to Italian fan translations of ITE as mentioned in
bugreport #2871990: "ITE: Italian FAN translation regression"

svn-id: r46520
2009-12-23 21:35:32 +00:00
Max Horn
c8873d8492 Changed MidiDriver::createMidi to take a MidiDriverType instead of an int
svn-id: r46316
2009-12-09 18:12:51 +00:00
Johannes Schickel
4c6fdce020 Fix warning.
svn-id: r46260
2009-12-04 19:58:10 +00:00
Torbjörn Andersson
01e12310ae Silenced GCC warnings.
svn-id: r46258
2009-12-04 19:00:40 +00:00
Andrew Kurushin
aa147a2f5a refactor resource module:
- struct ResourceContext => class ResourceContext
- replace "*alloc","free" with array templates
- simplify createContexts routines

svn-id: r46254
2009-12-04 17:52:42 +00:00
Eugene Sandulenko
1259f8061a Fill out doxygen comment about supported games
svn-id: r46234
2009-12-01 22:10:51 +00:00
Eugene Sandulenko
12828d3aaf Cache resource file size to avoid excess file->size() calls.
svn-id: r46138
2009-11-25 20:43:49 +00:00
Max Horn
df651bf20f Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
svn-id: r46128
2009-11-24 22:10:14 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn
2bbf708dea Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
2009-10-18 19:41:59 +00:00
Filippos Karapetis
422b732dba Added a new convenience method to the video player, which adds the event of skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used
svn-id: r45151
2009-10-16 07:42:23 +00:00
Max Horn
d0876b06ed Remove some unused variables
svn-id: r44853
2009-10-09 22:21:45 +00:00
Max Horn
42120ed626 Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
svn-id: r44793
2009-10-08 19:41:38 +00:00
Torbjörn Andersson
41adc39d2d Fixed cppcheck warnings about mismatching allocation/deallocation.
svn-id: r44543
2009-10-02 18:38:52 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Filippos Karapetis
b4f1960318 Reverted parts of revisions #44298, #44299 and #44300, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44314
2009-09-24 17:52:53 +00:00
Filippos Karapetis
6b79910bcb Fixed some more warnings about unreachable code
svn-id: r44300
2009-09-24 10:15:50 +00:00
Johannes Schickel
c50940bbf4 Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
svn-id: r44266
2009-09-23 00:15:00 +00:00
Filippos Karapetis
51dc72d49c Corrected the size of one of the Italian fan-translated versions of ITE (bug report #2845399)
svn-id: r44141
2009-09-17 09:40:39 +00:00
Max Horn
1011508325 Slightly modified version of Patch #2838562: Improve endian.h and stream.h
svn-id: r44027
2009-09-11 08:55:47 +00:00