Kaloyan Chehlarski
25c3efb0e2
AUDIO: Fix memory leak in WMA
...
Coverity CID 1338118
2023-11-02 11:41:22 +02:00
Kaloyan Chehlarski
d67fcb5e8b
AUDIO: Fix memory leak in AIFF
...
Coverity CID 1490097
2023-11-02 11:41:21 +02:00
Walter Agazzi
641374b5ed
AUDIO: Detect and skip BFW chunks in WAV files
...
Modern WAV files may contain extra chunks before the FMT header,
as specified in the Broadcast Wave Format extension.
These chunks must be skipped to properly read the header.
2023-10-21 16:13:20 +03:00
Walter Agazzi
9f802a181e
AUDIO: Skip JUNK padding in WAV files
...
Some wave files may contain a JUNK chunk before the
'fmt ' chunk, used for padding. This should be skipped when reading the header.
2023-05-28 13:56:59 +03:00
Donovan Watteau
6c14baa394
AUDIO: Fix -Wformat warning in QDM2
2023-05-14 22:57:11 +02:00
Donovan Watteau
18ab6803d6
JANITORIAL: Fix various "an" typos in comments
2023-03-16 14:47:28 +01:00
Walter Agazzi
7627725bc3
AUDIO: Set debug message to debuglevel 0
...
The "Skipping ID3 TAG" message is useless to users and spams
frequently in some games
2023-03-02 19:32:24 +01:00
elasota
c3ffe93ee4
AUDIO: Mark V-cruise as using Vorbis
2023-02-24 18:22:36 -05:00
Cameron Cawley
28d7b361ea
COMMON: Move more file format code into common/formats
2022-12-11 22:33:23 +01:00
Cameron Cawley
0581301b24
COMMON: Move huffman.h back out of the compression directory
2022-12-11 22:33:23 +01:00
elasota
cc11b531e3
JANITORIAL: Clean up all non-engine Visual Studio warnings.
2022-12-04 00:08:48 +01:00
Eugene Sandulenko
fb7095f5a4
COMMON: Move all compression-related files to a separate directory
2022-12-01 11:53:02 +01:00
Cameron Cawley
e04000d4b0
COMMON: Move FFT, DCT, MDCT, RDFT, SineTable, CosineTable and getSineWindow into Math
2022-11-20 14:32:05 +01:00
Cameron Cawley
59682f9ccf
AUDIO: Unify implementations of SilentAudioStream
2022-11-13 23:14:39 +02:00
Roland van Laar
3285aae6d1
AUDIO: fix memory leak in aiff
...
Dispose of the AIFF stream properly by setting the disposeAfterUse flag
in all makeStream functions.
2022-09-20 22:13:31 +02:00
Le Philousophe
208cf8bd40
AUDIO: Initialize Cryo APC fields
2022-09-18 12:00:02 +02:00
Le Philousophe
cf61337968
CRYOMNI3D: Build fixes in HNM6 and APC decoders
2022-08-30 11:43:06 +02:00
Le Philousophe
399e02e2a5
CRYOMNI3D: Add HNM6 image and video codec
...
This also adds a Cryo APC decoder in shared code.
2022-08-30 11:02:32 +02:00
Cameron Cawley
47755b4b38
COMMON: Make better use of inlining in BitStream functions
2022-08-28 00:05:31 +03:00
Coen Rampen
4375d7edc5
AUDIO: Fix VOC infinite loop
...
This fixes a possible infinite loop in VocStream. It depends on the stream size
matching the size specified in the VOC block headers, but if the size in the
headers is incorrect and larger than the stream size, it will keep trying to
read the stream. This is fixed by adding an end-of-stream check to the error
check.
2022-06-18 14:13:32 +02:00
Coen Rampen
79c778c6c9
AUDIO: Enable subclassing of VocStream
2022-06-18 14:13:32 +02:00
Einar Johan Trøan Sømåen
b3d026ae46
DIRECTOR: Implement AIFF mDuration.
...
This also means a refactor of the AIFF Audio-decoder, to expose
the two header fields we need to calculate the length.
2022-06-15 16:35:41 +02:00
Orgad Shaneh
b2322a8c4f
JANITORIAL: Add some long casts to match %ld format
...
Needed on Win64 compilation.
2022-06-12 10:24:34 +02:00
Stephen Robinson
1ae637fb57
SCUMM: Lip syncing fixes for some HE games.
...
Backyard Baseball 2003 was missing dialog which was lip-synced to
animation. This was due to it using the WAV block alignment as a count
of bytes per sample. This is not true for the IMA ADPCM format used for
speech in Backyard Baseball 2003.
2022-05-23 23:22:18 +03:00
Donovan Watteau
5b1ec56f96
JANITORIAL: Fix some lost or outdated URLs in comments
2022-05-19 07:57:31 +03:00
Paweł Kołodziejski
20cb0ae228
ALL: Cleanup ResidualVM -> ScummVM
2021-12-26 21:19:38 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Orgad Shaneh
2bd0347968
AUDIO: Use override
...
Using clang-tidy modernize-use-override
2021-11-14 20:14:11 +02:00
Orgad Shaneh
af529f568b
AUDIO: Use nullptr
...
Using clang-tidy modernize-use-nullptr
2021-11-14 13:41:02 +02:00
Orgad Shaneh
7a4e5612de
JANITORIAL: Replace new[]/memset with new[]()
...
Mostly done using the following Ruby script:
(Dir.glob('**/*.cpp') + Dir.glob('**/*.h')).each do |file|
s = File.read(file, encoding: 'iso8859-1')
t = s.gsub(/(([\w_.\[\]]+)\s*=\s*new\s+\S+?\[[^\]]+?\](?!\())([^\{\}]*?)\n\s+memset\(\s*\2\s*,\s*0\s*,[^;]*;/m, '\1()\3')
if t != s
File.open(file, 'w') { |io| io.write(t) }
end
end
2021-11-10 19:53:15 +01:00
Alexandre Detiste
6044504762
JANITORIAL: typos
...
some in the variable names, some in the comments;
no change for the strings that interract with original games assets
2021-10-31 20:46:31 +01:00
Max Horn
1d7d03bd6e
AUDIO: fix global constructor warnings
2021-08-07 10:46:14 +02:00
D G Turner
99a1a90e76
AUDIO: Fix for GCC Warnings from 64-bit Stream API Changes
2021-07-09 04:23:10 +01:00
Paul Gilbert
005561d305
COMMON: Increase Stream pos, seek, size from int32 to int64
2021-07-08 18:24:28 -07:00
SupSuper
df4bf9d557
SCI: Fix audio resources being freed too early
...
Copy audio resource buffers as we don't have control over the lifetime of the resource.
2021-06-03 23:27:46 +01:00
Strangerke
e26e78f968
TRECISION: Update comment in wave decoder to mention trecision
2021-05-29 21:24:38 +01:00
SupSuper
e1e57e31ce
AUDIO: Add PCM Mu-law and A-law decoders
...
Used by Nightlong engine
2021-05-29 21:23:01 +01:00
Orgad Shaneh
b49e6eb96f
JANITORIAL: Fix some excess tabs
2021-04-15 23:18:08 +03:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs
2021-04-15 21:20:36 +02:00
Thierry Crozat
88f265bd9a
AUDIO: Remove macro and break conditions to improve readability
2021-04-14 18:36:47 +02:00
Thierry Crozat
4ea4627b11
AUDIO: Add support for 24 bit PCM WAV
2021-04-14 18:36:47 +02:00
SupSuper
fed5608e43
AUDIO: Wrap raw streams in SeekableSubReadStream instead of allocating them
2021-04-01 23:25:43 +03:00
Matthew Hoops
faca37064b
AUDIO: Mark the wave code as being used by buried
2021-03-22 00:07:37 +01:00
Le Philousophe
65e4b21674
AUDIO: Fix int constant while int32 was expected
...
This errors out on AmigaOS4
2021-03-14 20:32:45 +01:00
Matthew Duggan
1947eae043
AUDIO: Add support for Xan DPCM (Crusader: No Regret)
2021-03-14 19:16:24 +01:00
SupSuper
872a547230
AUDIO: Combine WaveFormat enums under one header
2021-02-05 21:16:11 +02:00
Pawel Kolodziejski
27e12d8a96
ALL: Eliminate LOCAL_PI macro
2020-09-23 23:20:23 +02:00
Pawel Kolodziejski
d5304e2568
ALL: Synced with ScummVM - rev: 33a47d23b8
2020-09-03 02:21:14 +02:00
Pawel Kolodziejski
aea3bae26d
ALL: Synced with ScummVM - rev 0b777c23a9
2020-08-11 00:59:40 +02:00
Pawel Kolodziejski
b586571900
ALL: synced with ScummVM commit 09bf38c120
2020-05-09 20:05:54 +02:00