Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Matthew Hoops
1817dd9bc5
Do not use TO_LE_16 for the IMA ADPCM decoder as it breaks sound on BE systems.
...
svn-id: r39465
2009-03-17 02:35:43 +00:00
Joost Peters
e8e3397a3c
make readBufferTinsel*() output in native endianness, rather than little endian.
...
svn-id: r36215
2009-02-04 16:40:44 +00:00
Filippos Karapetis
dd39274391
Fixed regression in the ADPCM decoder. DW2 music should be played correctly again
...
svn-id: r36195
2009-02-01 22:21:57 +00:00
Filippos Karapetis
71b4f84c46
Fixed incorrect usage of a boolean (boolean variables are not supposed to be used as indexes to arrays...)
...
svn-id: r36194
2009-02-01 22:06:43 +00:00
Matthew Hoops
34e76afb16
Remove leftover comments.
...
svn-id: r36098
2009-01-27 11:49:53 +00:00
Matthew Hoops
13552cce55
Add support for looping ADPCM sounds. I'm also adding decoding of the "standard" IMA ADPCM code (aka Intel DVI ADPCM). This is from Mohawk. ;)
...
svn-id: r36097
2009-01-27 11:46:54 +00:00
Travis Howell
f9d0d2a44a
Add/Update comments.
...
svn-id: r36094
2009-01-27 03:26:51 +00:00
Jordi Vilalta Prat
b1999a2a16
Fixed indentation and removed whitespaces at the end of line
...
svn-id: r35481
2008-12-22 11:22:15 +00:00
Sven Hesse
30b6294d38
Apparently, constraining the number of mixing samples to be divisible by 4 is too strict, so I'm changing readBufferTinsel6() around a bit to allow for any number of samples (at the cost of adding 2 variables and a bit complexity ;))
...
svn-id: r35209
2008-12-02 21:58:48 +00:00
Max Horn
dd14e46698
Fixed a warning on the DS build, added some clarifying comments, reformatted the okiStepSize and imaStepTable tables (the former really is a subtable of the latter)
...
svn-id: r35106
2008-11-17 11:10:34 +00:00
Sven Hesse
24131d781a
Added support for the ADPCM used in Discworld 2
...
svn-id: r35089
2008-11-15 19:40:01 +00:00
Max Horn
655ce26b3f
Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
...
svn-id: r34514
2008-09-13 16:51:46 +00:00
Lars Persson
c098453ea1
Added template param to CLIP since implicit cast is not working 100% on all platforms. Target type is int32 so used that.
...
svn-id: r30760
2008-02-03 12:34:20 +00:00
Filippos Karapetis
97eb13c22f
Corrected an off-by-one error introduced with the latest cleanups
...
svn-id: r30743
2008-02-02 18:31:07 +00:00
Filippos Karapetis
33a534b76c
Cleanup
...
svn-id: r30738
2008-02-02 12:27:16 +00:00
Filippos Karapetis
d4831be986
Slight cleanup and commenting of the ADPCM decoder
...
svn-id: r29682
2007-12-01 16:31:10 +00:00
Max Horn
c8ce5b1865
Changed Audio::makeADPCMStream so that the stream passed to it can automatically be disposed
...
svn-id: r29517
2007-11-16 10:05:18 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
00b9bc7b36
Removing lots of superfluous semicola (see mail by David Weinehall on scummvm-devel)
...
svn-id: r26594
2007-04-25 19:31:23 +00:00
Eugene Sandulenko
4e8df88c81
Fix bug #1501302 : "FF: Crackling Audio (Mac version)"
...
svn-id: r23970
2006-09-21 20:12:16 +00:00
Torbjörn Andersson
a5fc242946
Clip samp to 2047, not 2048, so that it stays positive when multiplied by 16.
...
This seems to fix sound distortion in the Inherit the Earth demo.
svn-id: r22812
2006-05-31 22:37:28 +00:00
Torbjörn Andersson
dfda0555c3
Cleanup.
...
svn-id: r22573
2006-05-23 09:46:48 +00:00
Max Horn
27307acd7c
Moved the AudioCDManager as well as class AudioStream and its (standard) subclasses to namespace Audio
...
svn-id: r22231
2006-04-29 22:33:31 +00:00
Travis Howell
30b4b87f58
Fix valgrind warning
...
svn-id: r22082
2006-04-22 05:48:40 +00:00
Eugene Sandulenko
ff6028b00b
- Implemented MS ADPCM WAV format decoder used in Feeble Files. Still it is
...
out of sync with video. See TODO there.
- Fixed bug with MS IMA ADPCM mono to make it possible to work in real streams.
svn-id: r22080
2006-04-22 03:00:21 +00:00
Max Horn
8cdee5a931
Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 to ~250). Many greetings to eriktorbjorn, and have fun recompiling.
...
svn-id: r21500
2006-03-29 15:59:37 +00:00
Max Horn
140f6fce26
Hiding the implementation of ADPCMInputStream from the public, in favor of a factory function (just like with the other AudioStream subclasses)
...
svn-id: r21043
2006-03-03 15:51:33 +00:00
Max Horn
406703148f
Change CVS keywords to SVN keywords
...
svn-id: r20515
2006-02-11 10:05:31 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Max Horn
2c12614ae1
Simplify ADPCM IMA decoding (based on IMA docs). The result will only be 99.9% identical, but the code should be faster on most modern machines
...
svn-id: r19777
2005-12-11 13:18:27 +00:00
Max Horn
3107d08f27
Unified IMA code a little bit
...
svn-id: r19767
2005-12-09 22:04:28 +00:00
Max Horn
e0e1dcda08
URL pointing to an IMA format reference
...
svn-id: r19766
2005-12-09 21:42:19 +00:00
Eugene Sandulenko
37fbcf61ad
Fix MS IMA ADPCM decoder. I like Microsoft so much for reinventing another
...
standard.
svn-id: r19203
2005-10-21 02:00:12 +00:00
Eugene Sandulenko
4306c9344c
Improved IMA ADPCM decoder. It appeared that MS violated yet another standard
...
and nibbles order in samples appeared to be swapped. Had to untemplate
whole thing over again because I have no idea how to speicalize one of two
parameters in templates.
Now voices are clean but have some ticks, looks like overload. ITE wasn't
broken ;)
svn-id: r19166
2005-10-19 04:59:18 +00:00
Eugene Sandulenko
a050da784f
Simplified common buffer reader. Implemented now unused Microsoft IMA
...
ADPCM buffer reader. These folks invented ye another incompatible standard
and here it will sit #if 0'ed just for a case.
svn-id: r19164
2005-10-19 03:25:00 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Eugene Sandulenko
2b1d4ef990
Fix regression caused by recent code cleanup. Each input byte should be
...
processed twice, so even if stream end is reached, there should be another
iteration. Otherwise it always returned one byte less than expected.
svn-id: r18859
2005-09-22 20:45:46 +00:00
Max Horn
114efafe7d
Cleaned up the ADPCM code
...
svn-id: r18840
2005-09-17 10:58:01 +00:00
Max Horn
02568d4498
oops forgot this in my previous commit
...
svn-id: r18457
2005-06-24 16:39:17 +00:00
Max Horn
9da50d6662
Fixed Oki table entry; added doc URL; mention IMA ADPCM
...
svn-id: r18456
2005-06-24 16:21:10 +00:00
Max Horn
8b1d7b9166
When including files from common/, explicitly use the common/ prefix
...
svn-id: r18444
2005-06-24 15:23:51 +00:00
Max Horn
cca744f69a
Comply to our coding conventions
...
svn-id: r17975
2005-05-08 21:49:52 +00:00
Eugene Sandulenko
575e94602c
o Fixed ADPCM decoder length bug
...
o Plugged IMA ADPCM into SCUMM engine so latter HE titles now have speech
though it is somewhat noisy don't know why as decoder is based on ADPCM
reference implementation.
svn-id: r17904
2005-05-03 22:12:23 +00:00
Eugene Sandulenko
a71d60686c
Moved Oki ADPCM aka VOX decoder from SAGA engine to common sound/ directory.
...
Implemented IMA ADPCM decoder.
svn-id: r17903
2005-05-03 20:36:07 +00:00