Commit graph

47 commits

Author SHA1 Message Date
Ori Avtalion
064df1ff27 GOB: Reduce audio header dependencies 2016-04-14 17:18:33 +03:00
Max Horn
91e925d8ce GOB: Get rid of unused Audio::mixer references
Also remove the unused AdLib::_rate member variable.
2015-07-19 17:06:18 +02:00
Walter van Niftrik
e31da911c9 GOB: Implement custom AdLib volume control 2015-07-07 20:19:45 -04:00
Johannes Schickel
ea21bc939a GOB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Sven Hesse
658608d0dd GOB: Correct a delete/delete[]-mismatch 2013-04-15 18:24:09 +02:00
Sven Hesse
3189729c97 GOB: Don't leak in sampleLoad() when loading fails 2012-07-30 01:44:46 +02:00
Sven Hesse
2d05974b5c GOB: const correctness in SoundBlaster::playComposition() 2012-07-30 01:24:18 +02:00
Sven Hesse
95d9052c8d GOB: Fix a very stupid mistake in the Gob1 background track selection
Thanks to salty-horse for catching that. :)
2012-06-23 18:24:29 +02:00
Sven Hesse
08c0fa9105 GOB: Remove a superfluous semicolon 2012-06-16 03:04:35 +02:00
Sven Hesse
a24cb57c9d GOB: Loop the Little Red title music 2012-06-16 02:58:53 +02:00
Sven Hesse
fe44939eba GOB: Play the music on the title screen of Gob1 EGA
The EGA version of Gobliiins comes with an MDY track.
While the original doesn't play it, we thought it might
be a nice idea to play it nevertheless.
2012-06-11 06:20:34 +02:00
Sven Hesse
03ef6689c0 GOB: Rewrite the AdLib players
This is a complete rewrite of the AdLib players for ADL and MDY/TBR
files in the Gob engine.

Major changes
1) The AdLib base class is now completely separated from all file
   format code and can theoretically be used by any OPL2-based
   format (within reason)
2) The new code is far better documented and more readable
3) The MDY player now actually works. The MDY/TBR format is
   in reality the MUS/SND format created by AdLib as a simpler
   alternative to the ROL format
4) Since the MAME emulator is quite buggy and leads to noticable
   wrong percussion in the Gobliins 2 title music, the new AdLib
   player will try to create a DOSBox OPL. If it's not compiled in,
   or if the user configured opl_driver to "mame", it will print
   out appropriate warnings.
2012-06-11 05:18:06 +02:00
Sven Hesse
1998ab500e GOB: Tell Geisha that we have no AdLib
The title music is then played from SND files instead of
MDY/TBR files (that we still don't yet support).
2011-09-14 21:42:18 +02:00
Johannes Schickel
44068338e5 GOB: Made some static data const. 2011-09-08 20:03:30 +02:00
D G Turner
8356656575 GOB: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 02:20:51 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
765540a5fd GOB: Avoid hiding overloaded virtual methods 2011-02-26 20:25:44 +02:00
Sven Hesse
0793e5c0a3 GOB: Adibou has background atmosphere
svn-id: r55644
2011-01-30 00:02:14 +00:00
Sven Hesse
65bc46d3ab GOB: Add Script::evalInt() and Script::evalString()
svn-id: r55634
2011-01-29 22:47:53 +00:00
Sven Hesse
ce3d4b5d1b GOB: Add GobEngine::isCurrentTot()
svn-id: r55630
2011-01-29 22:45:51 +00:00
Sven Hesse
0c3a33c354 GOB: Change _curTotFile and _totToLoad into Common::String
svn-id: r55629
2011-01-29 22:45:15 +00:00
Sven Hesse
16a3cc8a84 GOB: Clean up class DataIO
Removing the need for class DataStream and that handle mess.

svn-id: r53984
2010-10-31 20:07:14 +00:00
Arnaud Boutonné
5cd3ea41db GOB: Clean up of Fascination code
Move Fascination specific function to appropriate classes, plus some style modifications

svn-id: r52267
2010-08-21 18:16:04 +00:00
Arnaud Boutonné
bdedf90c59 Suppress one more useless debug message
svn-id: r52162
2010-08-17 19:04:04 +00:00
Arnaud Boutonné
8b649178ce Fascination - Add workaround for script bug: wrong track name is called in storage room
svn-id: r52107
2010-08-15 23:40:24 +00:00
Johannes Schickel
cbbb78d9f2 Enforce conversion formatting on pointer casts in the DEV code.
svn-id: r49068
2010-05-17 22:46:53 +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
Sven Hesse
e861fab808 Added a Key and ShortKey enum
svn-id: r42121
2009-07-05 11:27:11 +00:00
Sven Hesse
d03dc08b64 Wrapping resources (out of TOT, EXT, IM? and EX? files) loading into its own class
svn-id: r41839
2009-06-24 21:49:37 +00:00
Sven Hesse
4ab4517016 Added stream-reading loading wrappers to MDYPlayer and added a workaround to fix TBR reading for the moment
svn-id: r41781
2009-06-22 20:27:47 +00:00
Sven Hesse
dd9e62e31e Adding DataIO::existData()
svn-id: r41752
2009-06-22 10:12:33 +00:00
Sven Hesse
d4855ff819 Splitting an ADLPlayer and MDYPlayer from the AdLib class
svn-id: r41633
2009-06-18 13:27:35 +00:00
Sven Hesse
c9517af76e Replacing some #includes by forward declarations
svn-id: r41632
2009-06-18 13:27:14 +00:00
Arnaud Boutonné
7eaf013bbf Gob - *WIP* incomplete implementation of MDY/TBR
svn-id: r41498
2009-06-13 22:14:58 +00:00
Arnaud Boutonné
8803d4b3a6 Gob - Added atmosphere music to WinGob1, WinGob2 and WinGob3
svn-id: r40363
2009-05-06 17:18:38 +00:00
Sven Hesse
51109a5cfc Adding simple support for protracker playback
svn-id: r39550
2009-03-19 23:40:59 +00:00
Sven Hesse
0eee801261 No background "music" shading in Urban Runner
svn-id: r35373
2008-12-15 02:16:45 +00:00
Sven Hesse
68dcb1ffee Background "music" for Urban Runner, though only 8bit for now
svn-id: r35352
2008-12-14 03:44:39 +00:00
Sven Hesse
bbe6ff006e Music/Video handling fixes/stubs
svn-id: r35351
2008-12-14 03:08:02 +00:00
Max Horn
9b160804ab Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
svn-id: r34700
2008-09-30 12:27:38 +00:00
Christopher Page
8d8c46e36f Cleanup: Got rid of _quit and _rtl variables in engine.h/.cpp which are not used anymore. Found some _quit flags in Agos and Gob and replaced with bool quit() where appropriate
svn-id: r33848
2008-08-13 20:45:00 +00:00
Christopher Page
c14804e22f Added main menu dialog files. Gob is now using the new _quit flag
svn-id: r32771
2008-06-24 23:19:23 +00:00
Sven Hesse
8da68b2964 Script variables are now always stored in the game version's native endianess.
This should make Woodruff playable on big-endian systems.

svn-id: r32352
2008-05-28 21:15:11 +00:00
Sven Hesse
a70d37009a Correctly delete'ing CDROM and Backgroundatmosphere, fixing segfaults on machines slower than mine (thanks, LordHoto ;))
svn-id: r32210
2008-05-22 14:25:27 +00:00
Sven Hesse
6e13bde213 Changing debug channels a bit
svn-id: r32157
2008-05-17 19:01:00 +00:00
Sven Hesse
18db41db50 Implemented the background "music" / atmospheric sounds in Woodruff
svn-id: r31949
2008-05-08 15:51:02 +00:00
Sven Hesse
220d6ce82f Restructured sound code
svn-id: r31937
2008-05-08 00:47:23 +00:00