aboutsummaryrefslogtreecommitdiff
path: root/sound/decoders
AgeCommit message (Collapse)Author
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-11-11SOUND: Add DK3 IMA ADPCM decoder for duck videosMatthew Hoops
svn-id: r54204
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-01SOUND: Convert some (f)printf + fflush to debugMax Horn
svn-id: r54022
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax Horn
A new header file common/forbidden.h is included by scummsys.h and it re-#defines numerous symbols like fopen(), fread(), system(), etc. with garbage, in order to provoke compile errors in any code using them. If a .cpp file really *must* use any of these (e.g. because it is a backend file), then these redefinitions can be disabled by #defining FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever this is done, an explanatory comment should be added. Note that this system cannot catch all "bad" usages (notably the Lua code in the sword25 engine), as it can only work if scummsys.h is included. svn-id: r53961
2010-10-24ALL: Fix various typos (patch #3093266)Max Horn
svn-id: r53762
2010-10-18SOUND: Add support for LastExpress version of IMA ADPCM sound.Eugene Sandulenko
Patch by littleboy. svn-id: r53578
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-10-12JANITORIAL: Cleanup (mostly whitespace)Torbjörn Andersson
svn-id: r53161
2010-10-12JANITORAL: Clean trailing whitespaces.Jordi Vilalta Prat
svn-id: r53160
2010-08-22MP3: Fix seeking.Johannes Schickel
Formerly we did not read the first chunk of MP3 data after seeking. This resulted in incorrect sound output in the Freddy Pharkas demo when the sound was compressed with MP3 for example. svn-id: r52272
2010-07-30Merged from trunk, from Rev 50841 to HEADAlejandro Marzini
svn-id: r51495
2010-07-27SOUND: Only dispose the input stream in makeAIFFStream if requestedMatthew Hoops
svn-id: r51373
2010-07-26SOUND: The rate in Mac snd's is fixed, not floating point (fix the comment)Matthew Hoops
svn-id: r51328
2010-07-26SOUND: Move the Mac snd decoder from SCI to /soundMatthew Hoops
For use with Kyra1 Mac instrument samples. T7G Mac and Loom Mac also use this format for their custom instrument samples. svn-id: r51327
2010-07-21Strip trailing whitespaces in our common code base.Johannes Schickel
svn-id: r51094
2010-07-13Merged from trunk, from Rev 49499 to HEADAlejandro Marzini
svn-id: r50840
2010-07-05Revert Android libtremor header to standard path, since we now shipAngus Lees
our own statically linked version rather than relying on the system shared lib that happens to be on most Android systems. svn-id: r50666
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-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-06-06Add Android backend from patch #2603856Max Horn
svn-id: r49449
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-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-07Fix comment to removed functionOri Avtalion
svn-id: r48965
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-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-12Fix bug #2969282: DW2: Weird "PC SPEAKER-like" sound distortion.Max Horn
svn-id: r48246
2010-03-08Tweak makeVOCDiskStreamMax Horn
* now takes a SeekableReadStream *pointer* like (almost) all other audiostream factories * fix potential memory leak in it * rename takeOwnershipOfStream to disposeAfterUse for consistency svn-id: r48184
2010-02-10Hopefully fixing bug #2948858 "MP3 (CD Audio) Broken under SVN".Johannes Schickel
svn-id: r48032
2010-02-08Fix RawStream::seek implementation.Johannes Schickel
svn-id: r48007
2010-02-03Loosening the 2 samples per channel requirement of Apple_ADPCMStream to 1 ↵Sven Hesse
sample per channel svn-id: r47864
2010-02-03Fix bug in RawStream::getLength for 16bit streams. (Uncovered by our new ↵Johannes Schickel
unit tests yay!) svn-id: r47859
2010-02-03Make makeMP3Stream return 0 on failure too.Johannes Schickel
svn-id: r47848
2010-02-03Yet more Flac -> FLAC changes for consistency.Johannes Schickel
svn-id: r47847
2010-02-03- Rename FlacStream to FLACStream.Johannes Schickel
- Rename makeFlacStream to makeFLACStream. svn-id: r47846
2010-02-03Rename RawAudioStream to RawStream for consistency.Johannes Schickel
svn-id: r47844
2010-02-03Rename:Johannes Schickel
- FlacInputStream -> FlacStream - VorbisInputStream -> VorbisStream - MP3InputStream -> MP3Stream svn-id: r47842
2010-02-03- Return 0 in makeVorbisStream and makeFlacStream, in case creating the ↵Johannes Schickel
stream failed. - Add a TODO in the MP3 code for the same behavior. svn-id: r47841
2010-01-31Further OOify the ADPCM codeMax Horn
svn-id: r47740