aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/sound_ns.cpp
AgeCommit message (Collapse)Author
2013-11-03PARALLACTION: Make sure overridden methods are not used. Fixes compiler warningEugene Sandulenko
2012-09-27PARALLACTION: Clean up global variables a bit.Alyssa Milburn
2012-07-25PARALLACTION: Fix delete[] formatting.Johannes Schickel
2012-02-15JANITORIAL: Fix whitespace in pointer template argTarek Soliman
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
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-25PARALLACTION: Move MidiDriver creation into MidiPlayer(_MSC) constructorsMax Horn
2011-03-24PARALLACTION: Change MidiPlayer impls 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-23ENGINES: Use Common::StackLock in more placesMax Horn
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-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2011-01-07PARALLACTION: fix music playback (bug #2879793).Nicola Mettifogo
* Do not restart character theme is already playing. * Play the correct tune in the night club. * Do not play muisc in the location meant to be silent. svn-id: r55147
2011-01-07PARALLACTION: remove code duplication in NS sound code.Nicola Mettifogo
svn-id: r55146
2010-04-12AUDIO: Rename Mixer::playInputStream to playStreamMax Horn
svn-id: r48637
2010-01-30Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream.Johannes Schickel
svn-id: r47716
2010-01-26Moved audio stream implementations (for MP3, FLAC, etc.) to new dir ↵Max Horn
sound/decoders/ svn-id: r47579
2010-01-23Reorder params to Audio::makeRawMemoryStreamMax Horn
svn-id: r47492
2010-01-23Get rid of deprecated makeRawDiskStream variants; rename deprecated ↵Max Horn
makeRawMemoryStream variant to makeRawMemoryStream_OLD; adapt some code to this change svn-id: r47472
2010-01-19Get rid of Mixer::FLAG_AUTOFREE.Max Horn
Also fix several recently introduced new/delete vs. malloc/free mismatches. svn-id: r47369
2010-01-19Move raw audio streams to new header sound/raw.hMax Horn
svn-id: r47368
2010-01-19Rename 'Linear' audio streams to 'raw'Max Horn
svn-id: r47367
2010-01-08Switch Mixer::playInputStream to use DisposeAfterUse::FlagMax Horn
svn-id: r47182
2010-01-07Moved creation of 'beep' sound buffer to sound manager constructor.Nicola Mettifogo
svn-id: r47124
2009-10-16Start the correct music inside the Hot Sushi. This fixes the part of ticket ↵Nicola Mettifogo
2879793 that is actually a bug. svn-id: r45147
2009-06-12Cleanup of sound code.Nicola Mettifogo
svn-id: r41461
2009-06-12* Replaced the A8SVXDecoder class with a function to return an AudioStream ↵Nicola Mettifogo
in trunk/sound/. * Refactored sound code in Parallaction to use the new Audio::make8SVXStream. svn-id: r41460
2009-03-28Add sound effects support for PC version of BRA.Travis Howell
svn-id: r39716
2009-03-22Changed Disk code to provide SeekableReadStream's to sound routines as well.Nicola Mettifogo
svn-id: r39608
2009-03-14Fixed building on 64-bit architectures.Nicola Mettifogo
svn-id: r39395
2009-03-14* Added a generic sound manager that hides engine-specific managers and ↵Nicola Mettifogo
allows accessing them through a simplified command/parameter interface. * Updated client code to use the new manager. * Moved Nippon Safes sound code from sound.cpp to sound_ns.cpp. svn-id: r39394