Commit Graph

172 Commits

Author SHA1 Message Date
Willem Jan Palenstijn
99307acf0a AUDIO: Fix reverse stereo volumes on ARM
This commit re-converts the stereo rate converters to
reverse stereo since they had drifted apart during the last few
refactoring steps.

In the process it makes vol_l/vol_r behave the same as in the C++.
2011-10-31 23:28:53 +01:00
Alyssa Milburn
bf39e60ff7 AUDIO: Fix reverse stereo (LinearRate_R) on ARM.
Fixes the issues I can reproduce, and presumably fixes bug #2998862.
(cherry picked from commit 797406fe4c77b6a56cc4f8a50c15d639cd440ce4)
2011-10-31 21:47:37 +01:00
Johannes Schickel
38aa82a4f5 AUDIO: Fix conditional compilation of maxtrax and tfmx code.
This is a regression from 3ddb6c0c90.
2011-10-28 12:32:14 +02:00
Johannes Schickel
3ddb6c0c90 AUDIO: Adapt include guard names to the "new" directory name. 2011-10-28 12:27:50 +02:00
Johannes Schickel
0e8110d3db AUDIO: Slight adaptions of SID code to our guidelines.
This only touches #include usages and the include guard of sid.h.
2011-10-28 12:23:50 +02:00
Johannes Schickel
3a196478c6 ALL: Reduce assignment of "" to Common::String.
When clearing an existant object clear() should be used.

When constructing objects (or using default values for parameters) the
constructor of String without any argument should be used.

This changes only a few instances I noticed while looking over some recent
commit logs.
2011-10-23 20:04:03 +02:00
Eugene Sandulenko
77c65648b1 AD: Swtich GUI options to a char array.
This eliminates nasty limitation of caping number of flags to 31.
Current code has limitation of 255 flags, though.

Only SCUMM engine is converted, rest do not even compile.
Detection of fan talkie MI is broken as it has to be implemented
differently.
2011-10-23 17:53:13 +01:00
D G Turner
a293bbbbb4 DRASCULA: Remove unecessary VOC header dependency.
Also, remove two engines not using VOC from voc.h header.
2011-10-09 22:13:30 +01:00
Johannes Schickel
3e1405b939 AUDIO: Add default disposeAfterUse value to makeVOCStream again. 2011-10-09 21:24:06 +02:00
Johannes Schickel
d4f54a2c97 AUDIO: Strip out some unused VOC code. 2011-10-09 21:24:00 +02:00
Johannes Schickel
221434a83f AUDIO: Remove unused makeVOCStream interface. 2011-10-09 21:23:29 +02:00
Johannes Schickel
36ce418854 AUDIO: Sync DOSBox OPL code a bit.
This only touches a line which is not used in the current setup.
2011-09-23 20:32:16 +02:00
athrxx
867f2887e8 SCUMM FM-TOWNS: fix invalid mem accesses
- handle some invalid sound resources that come up when starting LOOM
- fix typo in midi driver code (causing invalid mem reads)
2011-09-17 21:15:41 +02:00
Matthew Hoops
9a79a336aa AUDIO: Don't abuse rewind() for looping in XA
Thanks to LordHoto for pointing out my stupidity :P
2011-08-25 11:16:58 -04:00
Matthew Hoops
64d2e2db11 AUDIO: Cleanup the XA code
endOfData() will not return true if the eos flag is encountered. Flag handling is a bit stricter than before (flags == 1 does not necessarily mean eos). Also removed some dead code, fixed wrong code, and fixed formatting.
2011-08-25 11:02:08 -04:00
Matthew Hoops
37a401a172 AUDIO: Properly handle XA flags 2011-08-25 10:14:17 -04:00
Matthew Hoops
4e849092d2 AUDIO: Add a DisposeAfterUse parameter to makeXAStream 2011-08-24 09:54:19 -04:00
Matthew Hoops
40fd9ce27c AUDIO: Remove default rate parameter from xa 2011-08-24 09:54:19 -04:00
Matthew Hoops
adb69a5a39 AUDIO: Rename Vag to XA
Vag is really an XA container, and one that we do not have a decoder for (nor need)
2011-08-24 09:54:19 -04:00
Jordi Vilalta Prat
c72f31f5c8 I18N: Split some original messages to allow translation reusability. 2011-08-18 11:08:00 +02:00
Johannes Schickel
bb3d1f2738 AUDIO: Replace macro in emumidi code with enum. 2011-08-12 03:22:01 +02:00
Johannes Schickel
3635efd92c CMS: Simplify code a tiny bit. 2011-08-10 00:00:12 +02:00
Johannes Schickel
b95bbb2ace CMS: Do proper clipping of the sound data on generation.
This fixes some overflows/underflows which resulted in crackling.
2011-08-10 00:00:12 +02:00
Christoph Mallon
d1688d22d4 AUDIO: Simplify iterating backwards over an array. 2011-08-07 15:19:08 +02:00
Christoph Mallon
ab80b20a30 COMMON: Replace x + ARRAYSIZE(x) by the simpler ARRAYEND(x). 2011-08-07 15:19:08 +02:00
Christoph Mallon
e3e0a317e7 AUDIO: Simplify complicated loop condition.
- The loop is exited with break; when stream gets assigned, so stream == NULL is always true.
- When iterating using the length of an array a terminator element is unnecessary.
2011-08-07 15:19:08 +02:00
Christoph Mallon
a5a8833c05 COMMON: Add DisposablePtr<T>, which replaces many repeated implementations of a dispose flag. 2011-08-07 15:19:08 +02:00
Christoph Mallon
97a6ee2e64 AUDIO: #define OV_EXCLUDE_STATIC_CALLBACKS to not get unnecessary static data, which causes warnings. 2011-08-07 15:19:07 +02:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Eugene Sandulenko
2fa17c44ed JANITORIAL: Remove SVN keywords 2011-08-06 11:30:47 +01:00
Eugene Sandulenko
78f1ea7690 OSYSTEM: extended installTimerProc() with timer ID parameter 2011-08-06 11:28:35 +01:00
D G Turner
54f25aa843 COMMON: Renamed Integer Log2 function from log2 to intLog2.
This avoids naming collisions with system libraries on some platforms
i.e. DS, DC where the log2 is realised by macro.
2011-07-19 02:29:13 +01:00
Sven Hesse
1f3ccd4eed AUDIO: Fix stereo MS IMA ADPCM decoding 2011-07-19 03:10:10 +02:00
D G Turner
765813f750 CODECS: Replaced Integer log2 in QDM2 with Common::Math implementation. 2011-07-19 02:07:15 +01:00
athrxx
b8f6257dde SCUMM: minor bug fix in FM-Towns midi driver 2011-07-10 22:19:32 +02:00
Johannes Schickel
f1d3b35cc4 JANITORIAL: Remove svn keywords from audio/decoders/codec.h 2011-07-10 22:10:43 +02:00
Matthew Hoops
46aabed3f5 AUDIO: Fix QDM2 sound in QuickTime files 2011-07-10 15:50:47 -04:00
Matthew Hoops
c46aa548d6 AUDIO: Fix remaining AAC bugs by decoding with the same AAC context
This introduces a new Audio::Codec class, based on DrMcCoy's solution for WMA in eos.
2011-07-10 15:50:47 -04:00
athrxx
6c1e565db9 AUDIO: fix issue in detectDevice when config manager setting is missing 2011-07-04 08:32:20 +02:00
Julien
3ece07b14b AUDIO: Replace assignment in return call by separate assignment and return call. 2011-06-23 15:11:36 +08:00
Julien
c52cc84912 AUDIO/BACKENDS/GRAPHICS: Add error checks after allocating memory with malloc 2011-06-23 15:11:36 +08:00
Julien
2f200ac493 ANALYSIS: Fix potential memory leak when using realloc
When reallocation is unsuccessful, the passed buffer is not freed. In this case, assigning the result (NULL) will result in a leak of the original memory buffer.
See http://msdn.microsoft.com/en-us/library/kkedhy7c.aspx
2011-06-23 15:11:36 +08:00
Max Horn
88913c0139 ALL: Remove trailing whitespaces
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-06-20 00:59:48 +02:00
Eugene Sandulenko
eb13803709 AUDIO: Add complementary functions for getting channel volume and balance 2011-06-11 14:12:19 +03:00
Max Horn
55e1b08e22 AUDIO: Small cleanup in MidiParser_XMIDI::loadMusic 2011-06-10 22:15:39 +02:00
Max Horn
bdad493f3f AUDIO: Remove dead code 2011-06-10 22:15:39 +02:00
athrxx
d6e23ac67b AUDIO: improved warnings in detectDevice()
Silent fallback would occur if the user expressly selected a formerly available audio device which now has become unavailable (switched off, disconnected, no longer compiled in, etc.). A warning dialogue will now be displayed, before the fallback takes place.
2011-06-07 18:28:28 +02:00
Matthew Hoops
b6a9901e0a AUDIO: Remove tabs from comment spacing 2011-06-07 10:09:16 -04:00
Matthew Hoops
41e332a80d AUDIO: Clarify makeAACStream() usage
So we don't have anyone calling the function or attempting to make the AAC code seekable or anything crazy like that.
2011-06-07 09:52:42 -04:00
Thierry Crozat
592cca5402 GRAPHICS: Get rid of kSODFont (ScummFont)
OSD is now using the kGUIFont instead. The main advantage is that
the kGUIFont can be used for translated text while only ASCII
characters were present in ScummFont.
2011-06-06 23:20:08 +01:00