aboutsummaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2010-06-25AUDIO: get rid of MDT_PREFER_MIDI since it should be sufficient to either ↵Florian Kagerer
select MDT_PREFER_MT32 or MDT_PREFER_GM svn-id: r50288
2010-06-25Formatting fixes.Johannes Schickel
svn-id: r50285
2010-06-25AUDIO: some fixes in the audio device code (no sound option, new GUIO flags)Florian Kagerer
svn-id: r50281
2010-06-22LAUNCHER: hopefully fixed music driver selection via command lineFlorian Kagerer
svn-id: r50158
2010-06-22Remove some trailing tabs.Johannes Schickel
svn-id: r50152
2010-06-22GUI/LAUNCHER: This should fix the regression concerning pc speaker / pcjr ↵Florian Kagerer
support caused by patch #1956501 svn-id: r50145
2010-06-21Patch #1956501: "GUI/LAUNCHER: Midi device selection"Max Horn
svn-id: r50128
2010-06-18Make MidiParser::sendToDriver protected.Johannes Schickel
The client code should never try to pass commands to the output via the MidiParser API. SCI currently does that though... Actually that shows that either our MidiParser API becomes more and more an MidiPlayer than just a parser or that the SCI design has its flaws here. svn-id: r49996
2010-06-16SCI: implement channel remapping for SCI1Martin Kiewitz
svn-id: r49905
2010-06-15Some documentation cleanup to ease readability.Johannes Schickel
svn-id: r49867
2010-06-15Modify makeAIFFStream to match the other sound decoder factoriesMax Horn
svn-id: r49844
2010-06-15Fix spelling, cleanupMax Horn
svn-id: r49843
2010-06-15GUI: Implement MIDI drivers as GUI options.Eugene Sandulenko
Proper version of patch #2988641: "GSoC: Select drivers in GUI based on output types". So far only SCUMM engine supports this feature. svn-id: r49783
2010-06-15Sound: add PCJR as a pseudodriver.Eugene Sandulenko
Since AGI distinguishes between PCSPK and PCJR/Tandy, make it as a pseudodriver. svn-id: r49782
2010-06-15Implement translation support for ScummVM GUI.Eugene Sandulenko
Based on patch #2903830: "Updated Translation Prototype" by alexbevi which in turn is based on patch #1739965 by jvprat. Currently it builds all translations right into ScummVM. Once the feature will be accepted more widely, i.e. more translations will pop up, it will be trivial to move translation strings to external file. Finished translation: Russian Unfinished translation: Hungarian Things which are nice to do: - Language code -> language mapping for more user friendness - Specifying fonts to be used with language - Updating of interface language without restart. It will require moving of much code to reflowLayout() methods for each dialog The .po files must be in single byte encodings. I.e. no support for Unicode. svn-id: r49759
2010-06-14Since allNotesOff() is virtual and can be overriden, make its associated ↵Filippos Karapetis
variables protected instead of private svn-id: r49672
2010-06-09Rewind the underlying audio stream on LoopingAudioStream creation.Johannes Schickel
Also mention in the documentation that both LoopingAudioStream and SubLoopingAudioStream do rewind the underlying in their constructor. svn-id: r49539
2010-06-08Modification to remove false positive "Possible divide by zero" warnings ↵David Turner
given by cppcheck-1.43. These are incorrect as '/' operator has precedence over >>, but this does improve readability anyway. This bug in cppcheck has already been corrected: http://sourceforge.net/apps/trac/cppcheck/ticket/1714 svn-id: r49517
2010-06-06Add Android backend from patch #2603856Max Horn
svn-id: r49449
2010-06-06Correction for SCI valgrind uninit memory error in MIDI sound which occurs ↵David Turner
during LSL6 intro. This may be "hiding" a bug in the use of sound/midiparser.cpp in SCI i.e. incorrect use of parseNextEvent(), so this should be reviewed, but this patch initialises _next_event at object construction, which corrects this, should not break anything else and is good practice. svn-id: r49445
2010-05-30PSP: added preliminary support for using ME hardware to play MP3 files. If ↵Yotam Barnoy
the decoder fails to load, MAD is used instead. Disable with DISABLE_PSP_MP3. svn-id: r49319
2010-05-29Fix typo(?) which prevents streaming code from compiling.Neil Millstone
svn-id: r49314
2010-05-26Have makeADPCMStream use the entire stream if the size is 0 (as it says in ↵Matthew Hoops
the doxygen comment). svn-id: r49236
2010-05-25Patch #3006178: "rjp1: calculate sample length correctly"Max Horn
Fixes bug #3001110: "FOTAQ Amiga: crashes reporting assertion failure" Added a NEWS entry to the patch. svn-id: r49210
2010-05-23Move the QDM2 code to the graphics module, removing the cyclic dependency.Matthew Hoops
svn-id: r49171
2010-05-23Hide the QDM2 implementation and only expose it via a factory method, ↵Matthew Hoops
hopefully fixing compilation on most systems at the same time. svn-id: r49170
2010-05-23Move Mohawk's QuickTime code to graphics/ (and QDM2 to sound, disabled when ↵Matthew Hoops
Mohawk is not enabled) so SCI can use the code. svn-id: r49165
2010-05-17Add the Common::Rational class from patch #2963496 (VideoDecoder Rewrite)Matthew Hoops
svn-id: r49061
2010-05-07Fix comment to removed functionOri Avtalion
svn-id: r48965
2010-05-05Replace various strncpy usages by strlcpy.Johannes Schickel
svn-id: r48955
2010-05-03Cleanup.Johannes Schickel
svn-id: r48921
2010-05-03Check for read/seek errors of the underlying SeekableReadStream in RawStream.Johannes Schickel
svn-id: r48920
2010-05-03Fix for bug #2961787 "HE SAM1: Music in kitchen slightly off (regression)".Johannes Schickel
Unlike in the branch-1-1-x I did not restore the old RawMemoryStream code in the trunk. Instead I stripped out the pre-buffering of the RawStream code. I still decided to add some in-place buffering in RawStream::readBuffer to at least not rely on super-fast disk I/O. This is currently an experimental change. There might be need to reconsider the buffering (even though backends with slow disk I/O should actually do buffering for file I/O on their own). svn-id: r48919
2010-05-03Paranoia change: Prevent possible assertion caused by MP3Stream.Johannes Schickel
Currently we have an assert checking that the framerate of an Audio::Timestamp is always > 0. Since MAD might return "0" (and maybe even other illegal values) in case the MP3 stream is invalid we need to check that before we setup the _length Timestamp of MP3Stream. svn-id: r48904
2010-04-29Rename input -> streamMax Horn
svn-id: r48869
2010-04-20Fix the MT32 gfx output for 16bit compatiblity, cleanup, get rid of ↵Andre Heider
unnecessary buffers. svn-id: r48753
2010-04-17Fixing some warnings (with gcc 3.3.6)Max Horn
svn-id: r48694
2010-04-12AUDIO: Rename Mixer::playInputStream to playStreamMax Horn
svn-id: r48637
2010-04-09Add missing cases to switch statements, remove whitespaceOri Avtalion
svn-id: r48604
2010-04-03Do not use a template parameter for stereo setting for RawStream but instead ↵Johannes Schickel
pass the constructor a boolean, this should save some binary size. svn-id: r48496
2010-04-03Cleanup.Johannes Schickel
svn-id: r48495
2010-04-02Fix bug #2976353 - NIPPON: Sound looping fails (regression). By reverting ↵Travis Howell
47469, since the IFF sound code is only used by the Parallaction game engine. svn-id: r48467
2010-03-22Fix for bug #2969211 "NIPPON: Crash in Intro".Johannes Schickel
It is not a good idea to supply an SubLoopingAudioStream with the start and end time to be exactly the same time. Clarify that in the SubLoopingAudioStream documentation, add an assert in the SubLoopingAudioStream constructor for that case and also prevent make8SVXStream from doing so. svn-id: r48356
2010-03-18COMMON: Move Common::RandomSource to common/random.*Max Horn
svn-id: r48279
2010-03-13Fix our DECLARE_SINGLETON macro to conform to the C++ specs.Johannes Schickel
We need to use a namespace Common { } there to make strict C++ compilers like clang++ and comeau happy. I also added a slight comment about why that is needed to the macro definition and a note that you need to use it from the global namespace. svn-id: r48254
2010-03-12Fix bug #2969282: DW2: Weird "PC SPEAKER-like" sound distortion.Max Horn
svn-id: r48246
2010-03-12This hopefully fixes building on win64.Johannes Schickel
svn-id: r48245
2010-03-12Fix typosMax Horn
svn-id: r48242
2010-03-11MIXER: Change MixerImpl::playInputStream to error out when mixer is not readyMax Horn
My previous commit which tried to support this does not work correctly when using QueuingAudioStream; it then just leads to nasty crashes. Hence I am removing this again for now, until I get around to implement one of the better alternatives. svn-id: r48239
2010-03-11Replace Audio::MixerImpl::setOutputRate with a new 'sampleRate' param to the ↵Max Horn
MixerImpl constructor svn-id: r48238