983 Commits

Author SHA1 Message Date
Hubert Maier
0e691e209d JANITORIAL: Fix substract typo in dbopl.cpp 2024-05-18 13:52:31 +02:00
Hubert Maier
7865c78cf7 JANITORIAL: Fix folowing typo in tfmx.h 2024-05-18 13:52:31 +02:00
Hubert Maier
809de5f515 JANITORIAL: Fix aswell typos in tfmx.cpp 2024-05-18 13:52:31 +02:00
Hubert Maier
f4007c0980 JANITORIAL: Fix succeded typo in maxtrax.cpp 2024-05-18 13:52:31 +02:00
Hubert Maier
1e5fb84cea JANITORIAL: Add apostrophe to seek'ed to distinguish between command and typo in quicktime.cpp 2024-05-18 13:52:31 +02:00
Hubert Maier
725a36b07e JANITORIAL: Fix auxillary typos in qdm2.cpp 2024-05-18 13:52:31 +02:00
Hubert Maier
76d9cb4aef JANITORIAL: Fix wasnt typo in flac.cpp 2024-05-18 13:52:31 +02:00
Hubert Maier
284d66f52c JANITORIAL: Fix compatiblity typo in mt32gm.h 2024-05-18 13:52:31 +02:00
Stephen West
e2fe9523e4 MIDI: close files on error 2024-03-31 23:04:56 +03:00
Stephen West
0de5381038 MIDI: clear up debug message 2024-03-31 23:04:56 +03:00
Stephen West
0a5c94a0bc MIDI: load CM32L_*.ROM or MT32_*.ROM as pairs 2024-03-31 23:04:56 +03:00
Robert Crossfield
1c73db207e AUDIO: Fix integer sign extension issue in RJP1 envelope scaling
Resolve an issue where the value was incorrectly treated as a signed integer during multiplication/division. This was causing fluctuations in volume, with levels varying up and down.

The original code reads the envelopeEnd(1 and 2) value as a byte, extends it to a word then ANDs it with 0x00FF before multiplying/dividing.
2024-03-21 08:58:13 +02:00
athrxx
8670158cc6 SCUMM: (IMS) - fix adlib detune for Samnmax
This didn't work before. I don't know if it is now accurate
but for now I rather do this than rewrite the driver...
2024-03-17 02:09:23 +01:00
athrxx
c5ab90d6e7 SCUMM: (IMS) - improve parameter faders
The volume and pitch faders should be fine, now.
I haven't fixed the speed fader, since the whole
handling of the speed setting would need to get
examined a bit closer. I think we're doing it wrong
(but maybe correctly for MI2/INDY4/DOTT?), but
this can be fixed separately...
2024-03-15 21:19:01 +01:00
Matthew Jimenez
5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
athrxx
03a2bf85b0 AUDIO: (FM-TOWNS) - slightly adjust CD volume control
(Make it logaritmic instead of just linear. This improves the
music volume in Loom when using the distaff)
2024-03-03 15:01:37 +01:00
Lars Sundström
addbdc13c5 AUDIO: Fix problem where fluidsynth soundfont could not be loaded
The user can specify a custom soundfont to be used with fluidsynth.
There was previously a hack for the iOS7 backend to get the path to
the document folder where the user can put files in a sandboxed
environment. This hack was removed in commit:
cac06647571a3352cb108faad48af9271a69ce36

The problem however occurred when creating a FSNode from the full
system path because FSNode uses makeFileNodePath, which already
prepends the root. So the full path is added twice which causes the
fileNode.exists() to fail.

Create the FSNode from the path to the soundfont and check if the
file exist. If so then return the full path.
2024-02-25 10:16:09 +01:00
polyesterswing
be904229ec AUDIO: Remove redundant probing function
since checking whether a particular format is supported is checked
within the constructor, a separate probing function is not required
2024-02-21 18:45:25 +01:00
polyesterswing
15a9c63565 AUDIO: Add libopenmpt support 2024-02-21 18:45:25 +01:00
polyesterswing
ea03d64b62 AUDIO: Rename impulsetracker to universaltracker 2024-02-21 18:45:25 +01:00
NoSFeRaTU
f19ac248bd MM: XEEN: Initial MT32/LAPC-1 support
Some non-essential subroutines in fxEndSubroutine is not implemented.
Support is currently the same as original game, so Roland GS and there are no conversion to GM.
Music tracks requires at least MT32-compatible device with support of capital tone fallback in ROM.
Game is also extensively uses extended sounds found in CM-32L for sound effects, MT-32 will produce silence for those.
So using in combination with real CM-32L or emulated one is the best for now.
2024-02-17 13:16:51 -10:00
Eugene Sandulenko
1d6f7b05ea
JANITORIAL: Clean up some English language 2024-01-21 00:28:44 +01:00
Cameron Cawley
288e1aaa3f COMMON: Remove use of fmin/fmax/fminf/fmaxf 2024-01-08 13:07:05 +01:00
Cameron Cawley
5b1b14ad80 COMMON: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Le Philousophe
4ecccceca6 AUDIO: Move API to Path 2023-12-24 13:19:25 +01:00
Le Philousophe
ce961cabbc COMMON: Make soundfont a Path object 2023-12-24 13:19:25 +01:00
Thierry Crozat
cac0664757 AUDIO: Improve code to map the soundfont path to system path on iOS
The code looks a bit less hack-ish and also now supports using path
in the application bundle and not only in the documents folder. It
could also help for other backends using a sandoxed filesystem.
2023-12-03 16:17:32 +00:00
Thierry Crozat
f47d915ec0 AUDIO: Support specifying a soundfont in the ConfMan default domain 2023-12-03 16:17:32 +00:00
Thierry Crozat
6fc56a6333 AUDIO: Add lookup of fluidsynth soundfont using SearchMan or a soundfontpath config 2023-12-03 16:17:32 +00:00
Coen Rampen
f1abbff901 MIDI: Update FluidSynth settings
This updates the FluidSynth settings to the value ranges and defaults used by
the current version 2.3.4.

Reverb
- Room size: 0.00-1.20 / 0.20 to 0.00-1.00 / 0.20
- Width: 0-100 / 1 to 0.0-100.0 / 0.5
Chorus
- Level: 0.00-1.00 / 1.00 to 0.00 - 10.00 / 2.00
- Speed: 0.30-5.00 / 0.30 to 0.10-5.00 / 0.30
- Depth: 0.0-21.0 / 8.0 to 0.0-256.0 / 8.0
2023-11-25 22:26:53 +01:00
Kaloyan Chehlarski
df1fc611cd Revert "AUDIO: Optimize case for !inStereo && outStereo"
This reverts commit f4e399cf4fa5f56dabb52ea914e3cfd9f2b9ed17.
2023-11-21 15:01:14 +02:00
sluicebox
01ab50eae6 AUDIO: FM-TOWNS/PC-98: Fix array init. PVS-Studio V512
The intent was to initialize a two dimensional array but instead only
the first 257 of 510 bytes were initialized.
2023-11-19 20:29:44 -08:00
Le Philousophe
a700883e6f JANITORIAL: Fix spaces vs tab mismatch 2023-11-19 11:35:35 +01:00
Miro Kropacek
f4e399cf4f AUDIO: Optimize case for !inStereo && outStereo 2023-11-18 21:00:40 +01:00
Coen Rampen
36001426dc ULTIMA/NUVIE: Rework music code
This commit adds a MidiParser implementation for Ultima 6's
M format and MidiDrivers for AdLib and MT-32. This replaces
the old implementation based on AdPlug, which supports
AdLib only and does not have ScummVM's support for various
OPL emulators and devices.

Music for Savage Empire and Martian Dreams has been
temporarily disabled, because these games use a different
music format and there is no MidiParser yet.
2023-11-09 18:19:25 +01:00
Coen Rampen
8915aa3277 Revert "ULTIMA/NUVIE: Rework music code"
This reverts commit 911173f34e28a470ea11eda6625ab323ff4014cd.
2023-11-07 22:06:52 +01:00
Coen Rampen
911173f34e ULTIMA/NUVIE: Rework music code
This commit adds a MidiParser implementation for Ultima 6's
M format and MidiDrivers for AdLib and MT-32. This replaces
the old implementation based on AdPlug, which supports
AdLib only and does not have ScummVM's support for various
OPL emulators and devices.

Music for Savage Empire and Martian Dreams has been
temporarily disabled, because these games use a different
music format and there is no MidiParser yet.
2023-11-07 20:58:54 +01:00
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
sluicebox
8ba3a70961 COMMON: Fix memory leak in MidiDriver. PVS-Studio V773 2023-10-30 11:22:10 -07: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
Eugene Sandulenko
359c027b01
AUDIO: Initialize class variables. CID 1519100 2023-09-19 19:48:56 +02:00
Eugene Sandulenko
8b01125399
AUDIO: Fix incorrect null check. CID 1519099 2023-09-19 19:48:56 +02:00
elasota
8bb2afd217 AUDIO: Change default GM device to "auto" 2023-08-28 22:06:19 +02:00
Orgad Shaneh
406960afeb AUDIO: Use inline member initialization in SoundHandle 2023-08-24 21:02:22 +03:00
Kaloyan Chehlarski
0263447aa1 AUDIO: Drain leftover RateConverter buffer data
This commit fixes an issue where RateConverter would
sometimes chop off the very end of an audio stream. This
happened when the RateConverter would have some
data left in its internal buffer, but the source stream was
already fully read. The base RateConverter class now has
a needsDraining() function which indicates leftover data,
and relevant code now uses it when needed.
2023-08-16 20:41:58 +03:00
Le Philousophe
2e68867e98 AUDIO: Remove dynamic load of EAS for Android and fix DLS loading
Android 7 prevents loading of private libraries like AES.
DLS support was also broken because of a change in API.
2023-08-06 14:10:50 +02:00
Cameron Cawley
37764d86fc AUDIO: Support building the EAS MIDI driver on non-Android platforms 2023-08-06 14:10:50 +02:00
Misty De Meo
ea8ee0291c
AUDIO: remove unused variable assignment in dbopl 2023-06-17 10:12:30 -07: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