Commit Graph
220 Commits
Author SHA1 Message Date
D G Turner 93ed8a2c47 AUDIO: Fix Compilation with Fluidsynth v1.1.6 or earlier.
The function signature for these functions was changed from (char *) to
(const char *) in the v1.1.7 release, so compiling against
Fluidsynth v1.1.6 or earlier requires the copying of the strings to
prevent compilation errors such as "error: invalid conversion from
'const char*' to 'char*'".

Normally, we would break compatibility with older versions as platforms
should be using the latest Fluidsynth v1.X release of v1.1.11.

However, since this is trivial to fix and prevents breakage for legacy
platforms, am restoring the string duplication with scumm_strdup().

Apart from this, we should look at the Fluidsynth v2.X releases
currently in RC testing as the API is now changed for this.
2018-08-20 22:31:15 +01:00
Colin Snover a726b3bc89 AUDIO: Remove unnecessary string duplications in FluidSynth driver 2018-08-18 16:30:05 +02:00
Thierry Crozat 0b6ef93b85 GUI: Use consistent capitalization for options
As discussed on the mailing list we should use title capitalization
only for push buttons and tabs and use sentence capitalization for
everything else.
2018-07-22 21:28:12 +01:00
Adrian Frühwirth cee4d6b853 JANITORIAL: Fix trailing whitespace 2018-05-24 15:30:55 +02:00
Adrian Frühwirth 2d62b8efeb AUDIO: Silence compiler warning in Nuked OPL emulator 2018-04-21 01:24:21 +02:00
Adrian Frühwirth 9bee9e1ba6 JANITORIAL: Fix whitespace 2018-04-19 12:08:31 +02:00
Adrian Frühwirth 28a3faa178 AUDIO: Really fix constant type in Nuked OPL emulator 2018-04-07 14:41:06 +02:00
Eugene Sandulenko b1d2d56198 AUDIO: Specify constant type in Nuked OPL emulator 2018-04-07 12:40:28 +02:00
Eugene Sandulenko 52fc7e34d8 CONFIGURE: Do not even try to build Nuked OPL when disabled 2018-04-07 12:22:18 +02:00
Eugene Sandulenko 7f6d431fe3 JANITORIAL: Add missing endline 2018-04-07 09:53:46 +02:00
nukeykt b2052bc66f AUDIO: Add Nuked OPL3 core 2018-04-07 09:34:00 +02:00
Cameron Cawley 9111998c49 DS: Fix compilation with devkitARM r47 2018-04-07 09:30:07 +02:00
Tarek Soliman 50d79c5f26 MT32: Update to munt 2.3.0
This uses upstream commit 939cc986d9ffd044f8c6149361127ad5d94e430f

Closes gh-1091
2018-01-03 10:40:23 -06:00
Tarek Soliman b8e4821a5a MT32: Remove executable flag from source files 2017-12-20 22:09:03 -06:00
Eugene Sandulenko edeb6a636c AUDIO: Fix insufficient memset length in FM-TOWNS synthesizer 2017-08-11 21:55:59 +02:00
Torbjörn Andersson 665f5c99b2 JANITORIAL: Silence some more GCC 7 fall through warnings
I think these are the last one that were already flagged as being
deliberate.
2017-08-06 16:54:38 +02:00
Willem Jan Palenstijn 867511d2d0 MT32: Update Munt to 2.0.3
This update uses upstream commit
777c51cdb4dbb4e02a53c23edea9086f0b600e26.

The new SampleRateConverter is added, but not built as we don't use it.
Also, building it without source changes will need additional include
directories.

This update of Munt reduces the stack size, and thus fixes bug #9630.
2017-02-28 18:40:04 +01:00
D G Turner 77818e9683 MT32: Fix Set-But-Unused Compiler Warning. 2017-01-14 09:14:02 +00:00
Colin Snover b93f4f06e4 MT32: Really add the virtual destructor 2016-12-18 10:25:58 -06:00
Colin Snover d585c6f852 MT32: Fix virtual dtor warning, incorrect delete, unnecessary allocation 2016-12-18 10:20:23 -06:00
Eugene Sandulenko f98730028c MT32: Prevent Munt from including <fstream> 2016-12-17 20:32:04 +01:00
Colin Snover 1e23c91914 MT32: Fix driver to be thread-safe 2016-12-16 15:44:29 -06:00
Colin Snover b8d70d26fa MT32: Update Munt to 2.0.1-pre
This update uses upstream commit
f88ef828a600ce66d1f730c8fb2a7f580f6f6165.

This update switches to use the new Munt C++ interface, which
will allow ScummVM to link to an external Munt library instead
of requiring it to be built-in in the future. For the moment,
the emulator is still built-in, since it is not available from
most package repositories.

The Munt driver in ScummVM now uses writeSysex instead of the
(now-private) playSysexWithoutFraming, per recommendation from
the Munt team <https://github.com/munt/munt/pull/30>.

This changeset also removes direct modifications that used to be
made to Munt code, to ease future updates. To update Munt code in
the future:

1. Replace all source files in the `softsynth/mt32` directory with
   new files from the upstream `mt32emu/src` directory;
2. Update `config.h` with the correct version number for the new
   version of Munt;
3. Update `module.mk` to add any new source files that need to be
   built.
2016-12-16 15:44:29 -06:00
Colin Snover df4a503622 Revert "MT32: Update Munt to 2.0.0"
This reverts commit b4dbd6d3c2.
2016-11-25 12:24:08 -06:00
Colin Snover b4dbd6d3c2 MT32: Update Munt to 2.0.0
This changeset also removes unnecessary direct modifications to
Munt code to ease future updates. To update Munt in the future:

1. Replace all source files in the `softsynth/mt32` directory with
   new files from the upstream `mt32emu/src` directory;
2. Update `config.h` with the correct version number for the new
   version of Munt;
3. Update `module.mk` to match the list of sources given in
   `mt32emu/CMakeLists.txt libmt32emu_SOURCES`.
2016-11-25 12:14:13 -06:00
Thierry Crozat 0908fd2225 MT32: Use OSDMessageQueue to post OSD messages from the MT32 thread 2016-10-29 15:13:32 +01:00
Eugene Sandulenko 355c4fa646 JANITORIAL: Remove more trailing spaces 2016-10-09 15:02:02 +02:00
jepael 5cc2696deb AUDIO: Fix CMS chips incorrect pitch.
The CMS emulation assumes the chips run at 8 MHz clock,
but in PCs they run at 7.15909 MHz, so the emulated pitch
is too high. Adjusting the requested sampling rate higher
by matching amount the pitch is lowered down to normal.
2016-09-07 23:22:18 +03:00
Eugene Sandulenko fb18a15b97 AUDIO FM-TOWNS: Fix copy/paste error 2016-05-08 23:21:11 +02:00
Ori Avtalion 3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Johannes Schickel 6cb2148e0a AUDIO: Use MUNT's sample rate for MT-32 emulation. 2016-03-18 20:51:21 +01:00
Johannes Schickel 1ed261dac4 AUDIO: Make MT-32 emulator play MIDI events immediately.
This fixes the Indiana Jones and the Fate of Atlantis specific issue reported
in bug #6242 "AUDIO: Built-In MT-32 MUNT Produces Wrong Sounds".

Delaying MIDI events has been introduced with Munt 1.3.0.

Regression from 00992c1e68.
2016-03-18 20:51:21 +01:00
athrxx 05aa32dc21 AUDIO: fix two bugs in FM-TOWNS pcm code 2016-01-09 22:09:53 +01:00
Johannes Schickel 419419c860 AUDIO: Fix clang warning in mame.cpp. 2016-01-07 15:04:10 +01:00
Johannes Schickel 1baf3bed7a AUDIO: Use standard line warps in iOS7 hack comment in fluidsynth.cpp. 2016-01-07 11:00:28 +01:00
Johannes Schickel ded43d795a AUDIO: Remove unused includes in fluidsynth.cpp. 2016-01-07 10:59:15 +01:00
Vincent Bénony b5ef98637c IOS: Renames a macro 2016-01-07 09:55:56 +01:00
Vincent Bénony a56c587651 IOS: Fluidsynth path hack only for iOS 7 2016-01-06 16:20:29 +01:00
Vincent Bénony 9adf7cd570 IOS: Uses Common::String instead of plain C string 2016-01-06 16:20:29 +01:00
Vincent Bénony efdb5679ce IOS: Merge branch 'master' into ios-fix 2016-01-06 16:20:23 +01:00
Vincent Bénony c99456ecff IOS: Brings support for FluidSynth 2016-01-06 16:17:38 +01:00
Filippos Karapetis 00e0d68a9f MT32: Also use the ROM name to return the most appropriate ROM info
Since we are not using munt's SHA-1 hashing code, this returns the most
appropriate feature set for CM-32L ROMs
2015-12-28 12:09:25 +02:00
Filippos Karapetis 18aa8ad2ba Revert "MT32: Add SHA1 file digest checking in getROMInfo()"
This reverts commit 908d2f39d7.

The licence of the SHA1 code that munt is using is unclear.
Reverting until it's sorted properly, for now
2015-12-28 03:30:55 +02:00
Filippos Karapetis d119d3eba4 MT32: Check for CM32-L ROMs before checking for MT-32 ones
This ensures that the CM32-L ROMs will be preferred, if both sets are
located in the same folder
2015-12-28 02:38:52 +02:00
Filippos Karapetis 908d2f39d7 MT32: Add SHA1 file digest checking in getROMInfo()
This ensures that the capabilities of the detected ROM files are
set properly from the list of known ROMs. This is mostly needed
for the extra samples of the CM32-L ROMs
2015-12-28 02:37:57 +02:00
athrxx 8c046f4826 AUDIO: (FM-TOWNS) - replace fixed hanging notes buffer with a dynamic chain
(This works around issues with some Indy 3 sound tracks. These tracks seem to be broken, since they have way too long duration values for some notes which would fill up the event buffer rather quickly. I tested with the UNZ emulator to be sure that this is an issue which also occurs with the original driver.)
2015-11-09 18:41:10 +01:00
athrxx 924b582ced AUDIO: fix bug #6885 (INDY3: FMTOWNS: Music is distorted (regression)) 2015-11-09 18:41:09 +01:00
athrxx 160f1a074d AUDIO: (FM-TOWNS) - fix looping pcm sounds 2015-11-09 18:41:07 +01:00
athrxx 4ec41c291e AUDIO: (FM-TOWNS) - cleanup euphony code
(rework parts of the code + improve naming of variables/functions)
2015-11-09 18:41:06 +01:00
Matthew Hoops bb8132beb8 AUDIO: Move ALSA OPL 'driver' out of softsynth
Might eventually be worth moving to backends/
2015-07-07 20:41:30 -04:00