788 Commits

Author SHA1 Message Date
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
Matthew Duggan
0fb60cb3c0 AUDIO: Fix typo (missing comma) 2021-05-19 17:27:29 +09:00
Matthew Duggan
3f451c876e AUDIO: Use initializer list to ensure buffers are valid or null
Identified by coverity - if the module load fails, _mixBufferSamples could be
left as an invalid pointer, which would cause a problem in the destructor.

Moved most things to initailizer list to avoid the problem.

Coverity still identifies a lot of uninitialized members, but they should all
get initialized when playback starts and have less chance of causing real bugs.
2021-05-19 17:18:21 +09:00
Eugene Sandulenko
da75beb668
AUDIO: Added possibility to start MOD playback from a given pattern 2021-05-14 01:01:58 +02:00
Eugene Sandulenko
a332688ae6
AUDIO: Fix Mod sound looping 2021-05-13 15:35:40 +02:00
Eugene Sandulenko
2b29bcd1af
AUDIO: Make ModPlayer rewindable 2021-05-13 02:09:48 +02:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Filippos Karapetis
99e5de932e AUDIO: Remove the broken ARM audio rate converter
This code has been broken and unmaintained for at least 7 years now,
and had been disabled. This also removes the associated define
USE_ARM_SOUND_ASM
2021-05-04 01:16:14 +03:00
Gregory Montoir
41eda4fe9b AUDIO: Use template parameter instead of member variable 2021-05-02 02:25:13 +02:00
Cameron Cawley
c38e3bdc2a AUDIO: Support building with FluidLite 2021-04-25 20:39:55 +03: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
Lothar Serra Mari
24a27f6568 MT32: Fix definitions 2021-04-10 16:09:54 +02:00
Lothar Serra Mari
357744069c MT32: Update munt emulation code to libmt32emu 2.5.0 2021-04-10 16:09:54 +02:00
Le Philousophe
d0d38b0199 FLUIDSYNTH: Fix compilation with Fluidsynth 2.2
We replace deprecated functions as well
2021-04-08 21:04:41 +02:00
Le Philousophe
631b13b5f4 FLUIDSYNTH: Simplify FluidSynth version check 2021-04-08 21:04:41 +02:00
SupSuper
fed5608e43 AUDIO: Wrap raw streams in SeekableSubReadStream instead of allocating them 2021-04-01 23:25:43 +03:00
Filippos Karapetis
d38bb8392b AUDIO: Use type casting in a more uniform way 2021-03-23 08:57:41 +02:00
Orgad Shaneh
08729a889d AUDIO: Fix compiler warning
size_t and long are not the same on Win64.
2021-03-23 08:57:41 +02:00
Matthew Hoops
faca37064b AUDIO: Mark the wave code as being used by buried 2021-03-22 00:07:37 +01:00
Eugene Sandulenko
0ccd2a71dd AUDIO: Add override keywords 2021-03-14 20:52:22 +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
Thierry Crozat
6ef406ac20 AUDIO: Fix compilation with Fluidsynth2 2021-03-09 11:32:57 +00:00
sluicebox
a3bc5d64b8 FLUIDSYNTH: Fix build 2021-03-08 21:00:59 -08:00
Torbjörn Andersson
21d65cedf2 FLUIDSYNTH: Swapped debug levels for FLUID_WARN and FLUID_INFO
If FLUID_INFO is "verbose informational messages", perhaps they should
be better hidden from the average user than warnings. Particularly since
warnings are the only kind I've actually seen in the wild. (Change
suggested by criezy.)
2021-03-08 22:04:02 +00:00
Torbjörn Andersson
08b54f489b FLUIDSYNTH: Make FluidSynth logging less noisy by default 2021-03-08 22:04:02 +00:00
sluicebox
93eeffc84d JANITORIAL: Update old bug tracker numbers 2021-03-03 02:15:05 +02:00
Matthew Duggan
1a5459b25e AUDIO: Support mod files which loop 2021-02-20 14:48:17 +09:00
Matthew Duggan
498a2fed2e AUDIO: Const correctness for mod loader and stream 2021-02-20 14:48:06 +09:00
SupSuper
872a547230 AUDIO: Combine WaveFormat enums under one header 2021-02-05 21:16:11 +02:00
Cameron Cawley
d614f3ce2c AUDIO: Disable Paula filtering on the DS
It's too slow with it enabled.
2021-02-04 01:59:14 +01:00
Lothar Serra Mari
b367e47eb1 MT32: Update Munt emulation code to libmt32emu 2.4.2 2021-01-17 16:55:26 +01:00
Cameron Cawley
6bb9c74cc3 MT32: Remove setting the palette when the driver is initialized 2021-01-05 02:07:55 +02:00
Thierry Crozat
7027be781b AUDIO: Add missing definition for static members
This will hopefully fix undefined symbol errors for some of those.
Those const static integral members are initialized in the class
definition, which is allowed (even before c++11). But they still
need a definition if they are odr-used, and that was missing. I
suspect this is why some compiler were giving errors.
2020-12-05 00:06:18 +00:00
Bartosz Gentkowski
d082a4837f DOXYGEN: Review headers from 'audio'
This PR has 3 headers in scope of GSoD.
The files are:
- audiostream.h
- mixer.h
- timestamp.h

The rest of the files are only receiving a doxy group.
2020-12-01 23:54:42 +00:00
NMIError
1bd9e61417 MIDI: Fix virtual destructor and nullptr warnings 2020-11-28 17:59:15 +00:00
NMIError
4834651115 MIDI: Add multisource support to SMF parser
This allows the SMF parser to work with MidiDriver implementations that support
multiple MIDI sources. You can set the source number when constructing the
parser. This is then passed along when MIDI messages are sent to the driver.
2020-11-28 17:59:15 +00:00
NMIError
7857df2ea9 MIDI: MT-32 / GM driver
This adds a new MidiDriver subclass with functionality
for MIDI based devices like the MT-32 and GM devices
or emulators.
2020-11-28 17:59:15 +00:00
Eugene Sandulenko
5936026209 ALL: Clarify POTFILES, remove redundant common/translations.h includes 2020-11-10 03:03:49 +01:00
Vladimir Serbinenko
29cfa7bb0f COMMON: Merge code for str.cpp and ustr.cpp
Most of the code in str.cpp and ustr.cpp is actually the same. Do some
template magic to merge them.
2020-10-31 14:05:30 +01:00
Lothar Serra Mari
ebce9c8ef3 MT32: Re-apply patches for silencing various GCC and MSVC warnings
I really should send them upstream.
2020-10-17 18:17:18 +02:00
Lothar Serra Mari
5bd94ed311 MT32: Update Munt emulation code to version 2.4.1 2020-10-17 18:17:18 +02:00
Paweł Kołodziejski
35b9cccbde ALL: Merge ResidualVM 2020-10-09 19:44:13 +02:00
Vladimir Menshakov
0864699e5a AUDIO: Remove Tracker copy ctor
Tracker declares copy ctor for simple structure of POD types, but does not declare operator=.
Implicit copy/move/operator= is just fine.
2020-09-26 15:09:09 +01:00
Pawel Kolodziejski
6844942b58 ALL: Cleanup after sync 2020-09-24 00:37:58 +02:00
Pawel Kolodziejski
27e12d8a96 ALL: Eliminate LOCAL_PI macro 2020-09-23 23:20:23 +02:00