aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/music.cpp
AgeCommit message (Collapse)Author
2012-07-15TINSEL: Change SetMidiVolume() so that it doesn't start/stop music tracksFilippos Karapetis
Previously, SetMidiVolume() would stop the currently playing track when the MIDI volume was set to 0. Now, the music track always plays, even when the volume is set to 0. This fixes bug #3541533 - "DW: Silencing music volume stops music" and resolves two FIXME comments
2012-07-15TINSEL: Remove the GF_DEMO flagFilippos Karapetis
2012-07-09TINSEL: Fix bug #3541230 - "DW: PSX version locks up after using the book"Filippos Karapetis
Removed the superfluous MIDI offset storing code. Now, the MIDI buffer is re-read when the music loops. This removes a static variable and also fixes another bug in the SEQ decoder.
2012-05-03TINSEL: Add basic PSX SEQ playback supportMatthew Hoops
Instrument bank support is not implemented yet
2012-02-22TINSEL: Rename globals to add g_ prefix.Alyssa Milburn
2011-11-14TINSEL: Don't leak _curChunk on exit.Alyssa Milburn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-13TINSEL: Move custom ADPCM decoders to tinsel engineMax Horn
2011-04-12TINSEL: cleanupMax Horn
2011-04-10TINSEL: Removed some unused global static variablesmd5
2011-03-28AUDIO: Add Audio::MidiPlayer::createDriver(), let some engines use itMax Horn
2011-03-25AUDIO: Move more common code to Audio::MidiPlayerMax Horn
This also should fix some regressions from the previous commits, related to MidiParser's either being leaked, or being deleted and then used again (i.e., crashing). I tested as many games as I had available, but further testing of all affected engines is called for anyway.
2011-03-25TINSEL: Remove unused TinselEngine::_musicVolume memberMax Horn
2011-03-24TINSEL: Change MidiMusicPlayer to derive from Audio::MidiPlayerMax Horn
2011-03-23ENGINES: Further simplify pseudo MidiDrivers; fix some regressionsMax Horn
The regression affected AGOS and maybe some others; specifically, the real MidiDriver would have been deleted twice -- I previously missed that the Engine instances takes care of freeing the real MidiDriver, not the MidiPlayer wrapping it. This commit should clarify the ownership of the real MidiDriver for most pseudo MidiDrivers.
2011-03-23AUDIO: Change several fake MidiDrivers to MidiDriver_BASE subclassesMax Horn
Many engines follow the advice in audio/midiparser.h and create a "pseudo-MidiDriver" subclass. But MidiParser really only needs a tiny subset of the MidiDriver capabilities, namely those found in MidiDriver_BASE. So we try to subclass from that whenever possible; this allows us to remove many stub methods, and enables further future simplifications.
2011-03-22AUDIO: Add pure virtual MidiDriver::isOpen() methodMax Horn
This in turn enables modifying MidiDriver_MPU401::close() to allow it to be called on a midi driver that has not yet been opened. The specific issue that triggered me to make these changes was a crash-upon-quit in HUGO, caused by it instantiating a midi driver, then encountering an error (missing hugo.dat) *before* having opened the new midi driver; the general cleanup code then tries to close the (not yet opened) midi driver -> kaboom Also fixed some engines which were leaking MidiDriver instances.
2011-02-24TINSEL: Added enhanced music support for the German CD "Neon Edition" ↵md5
re-release of DW1 (bug #2827022)
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2011-02-02MIDI: Fix for bug #3170988 - "MONKEY2: Messed up MT-32 music"Filippos Karapetis
This is a regression from r55256. Apparently, SCUMM has issues when sending a sustain off on a notes off event. Thus, this has been turned into a feature, which is disabled by default. Since MADE, SAGA and tinsel all share the same music code and play regular MIDI files, and this feature fixes hanging notes for them, it has been enabled for them. Also, applied a patch for a bug regarding the notes off event in MADE and tinsel, which has been applied in SAGA already svn-id: r55746
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-16TINSEL: Mark all (?) global vars with a FIXME commentMax Horn
Use of global vars is what prevents RTL from working in Tinsel (and probably in other engines). More specifically, the fact that many global vars are not explicitly inited when the engine is (re)launched. svn-id: r54262
2010-11-08COMMON: Push #include audiocd.h in system.h out to .cpp filesMax Horn
svn-id: r54148
2010-11-08BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes onlyMax Horn
This commit contains the AudioCDManager changes from the gsoc2010-opengl branch. The other changes in that branch are restricted to the backends directory only (plus configure). The Nintendo DS and Dreamcast ports still need to be ported over to the new Audio CD system, but that should be fairly easy to do. svn-id: r54147
2010-11-01ENGINES: Get rid of some (f)printfsMax Horn
svn-id: r54011
2010-10-13OPENGL: Merged from trunk, from rev 52105 to 53396.Johannes Schickel
This includes an rather hacky attempt to merge all the recent gp2x backend changes into the branch. I suppose the gp2x backend and probably all new backends, i.e. gph, dingux etc., might not compile anymore. Since I have no way of testing those it would be nice if porters could look into getting those up to speed in this branch. svn-id: r53399
2010-09-11TINSEL: Fix for #3032780 - Mute not respected in DW1Paul Gilbert
svn-id: r52674
2010-08-24TINSEL: Code cleanup, fixed potentially undefined behaviorFilippos Karapetis
svn-id: r52338
2010-08-24TINSEL: Adjusted the commented out music debug code for the latest changes toFilippos Karapetis
the lookup tables svn-id: r52333
2010-08-24TINSEL: Removed the hardcoded MIDI offset arrays.Filippos Karapetis
MIDI offsets for the enhanced music soundtrack are now calculated on the fly svn-id: r52331
2010-08-24TINSEL: Fixed final track mapping to Ench soundtrack.Eugene Sandulenko
For some reason it referred to non-existent 3141. Changed it to correct 3142. svn-id: r52324
2010-08-24TINSEL: Partial fix for MIDI in German release.Eugene Sandulenko
Bug #2827022: "DW: Enhanced music doesn't work". This release has completely different MIDI.DAT file. So far offsets and detection for this version were added. The mapping has to be confirmed with James Woodcock. svn-id: r52323
2010-06-15Renamed getAudioCD to getAudioCDManager.Alejandro Marzini
svn-id: r49678
2010-06-09- Revised abstract AudioCDManager.Alejandro Marzini
- Removed AudioCDManager Singleton, and changed code for using AudioCDManager in OSystem. - Added initialization code for new AudioCDManager in BaseBackend and OSystem_SDL. svn-id: r49548
2010-04-27Fix warningWillem Jan Palenstijn
svn-id: r48817
2010-04-12AUDIO: Rename Mixer::playInputStream to playStreamMax Horn
svn-id: r48637
2010-01-31Switch makeADPCMStream to DisposeAfterUse::FlagMax Horn
svn-id: r47736
2010-01-26Moved audio stream implementations (for MP3, FLAC, etc.) to new dir ↵Max Horn
sound/decoders/ svn-id: r47579
2010-01-08Switch Mixer::playInputStream to use DisposeAfterUse::FlagMax Horn
svn-id: r47182
2010-01-08Move DisposeAfterUse::Flag from Common to global namespace, and into a new ↵Max Horn
header common/types.h svn-id: r47180
2009-12-15Got rid of ReadStream::ioFailed()Max Horn
svn-id: r46379
2009-11-09TINSEL: Make some const tables static; move static int priorVolMusic into ↵Max Horn
SetMidiVolume to reduce its scope svn-id: r45784
2009-11-02TINSEL: Turn config code into a simple C++ classMax Horn
svn-id: r45617
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-18Introduced new type Common::DisposeAfterUse::FlagMax Horn
svn-id: r45233
2009-08-08Change workaround for bug #2820054 to apply for all GRA versions.Johannes Schickel
svn-id: r43123
2009-08-08Formatting fix.Johannes Schickel
svn-id: r43122
2009-08-08Add workaround for bug #2820054 "DW1: No intro music at first start on Wii", ↵Johannes Schickel
which actually happened on all systems, when using the multilanguage version. svn-id: r43119
2009-08-05Bugfix for music not being stopped when music volume is set to zeroPaul Gilbert
svn-id: r43066
2009-07-11Bugfix to properly save the currently playing midi music when saving a scenePaul Gilbert
svn-id: r42377