192 Commits

Author SHA1 Message Date
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 00992c1e68444a8123ffc89a971751cecf7287ed.
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 908d2f39d7579c3f1781f7dedc7b26366a6d3dfc.

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
Matthew Hoops
fde8abf8cc AUDIO: Move the common AdLib MidiDriver out of softsynth 2015-07-07 20:19:49 -04:00
Walter van Niftrik
f0606aa8f1 AUDIO: Reset OPL registers in ALSA driver 2015-07-07 20:19:48 -04:00
Walter van Niftrik
1287a56429 AUDIO: Fix ALSA AdLib OPL2 waveform mask 2015-07-07 20:19:48 -04:00
Walter van Niftrik
1bdcf6e836 AUDIO: Reset ALSA AdLib on exit 2015-07-07 20:19:48 -04:00
Walter van Niftrik
be345083a0 AUDIO: Update 2nd operator panning for AdLib register 0xc0 2015-07-07 20:19:48 -04:00
Walter van Niftrik
b630eca437 AUDIO: Fix bug in ALSA AdLib driver
Thanks clone2727
2015-07-07 20:19:47 -04:00
Walter van Niftrik
40820eebf5 AUDIO: Add experimental hardware OPL support using ALSA 2015-07-07 20:19:47 -04:00
Matthew Hoops
bed9da8b9d AUDIO: Remove all AudioStream access to OPL 2015-07-07 20:19:47 -04:00
Matthew Hoops
dce05c520b AUDIO: Be consistent with calling stop() in OPL destructors 2015-07-07 20:19:46 -04:00
Matthew Hoops
cc6e304af1 AUDIO: Limit the DOSBox start(0) hack to only being called once 2015-07-07 20:19:44 -04:00
Matthew Hoops
ed8830fcc8 AUDIO: Use the built-in OPL timer for MidiDriver_ADLIB 2015-07-07 20:19:43 -04:00
Matthew Hoops
b9307ef1a4 AUDIO: Introduce a callback to the OPL code
Currently unused, but ready to be hooked up to various classes using it.
2015-07-07 20:19:42 -04:00
Matthew Hoops
2e8f9dcec9 AUDIO: Remove the sample rate configuration from the OPL code 2015-07-07 20:19:42 -04:00
Filippos Karapetis
e34b5be8e3 MT32: Update to munt 1.5.0
This syncs with munt commit 4041a16a5d
2014-12-21 22:19:28 +02:00
Filippos Karapetis
f953e3a435 MT32: Sync with the latest changes in munt
This syncs the code with munt commit fa8b4f899d, avoiding usage of a
global constructor
2014-07-13 17:12:04 +03:00
Johannes Schickel
32df9f7759 MT32: Comment out default showLCDMessage/printDebug implementations.
This keeps the original MUNT code in showLCDMessage/printDebug and simply
comments it out. This *silences* a warning about debug use in our former
default replacement code. Since we already implement a ReportHandler there
is no need to adapt the default implementation.

This is not the cleanest way but the solution which requires the least changes
to MUNT code.
2014-07-11 00:56:10 +02:00
Johannes Schickel
f8d0a48dcd Revert "MT32: Avoid runtime abort due to non-POD object pass in MT32 Emulator."
This reverts commit 6731eb21e3e4c1fa2470ed03a3547d45b3dff6e3.
2014-07-11 00:38:31 +02:00
D G Turner
6731eb21e3 MT32: Avoid runtime abort due to non-POD object pass in MT32 Emulator. 2014-07-10 23:11:20 +01:00
Filippos Karapetis
8c5f67568f MT32: Update to munt 1.4.0
This syncs with munt commit 175446af43
2014-07-08 00:02:18 +03:00
Filippos Karapetis
10c7986a36 MT32: Copyright year bump 2014-07-08 00:02:17 +03:00
Johannes Schickel
452cec49d9 AUDIO: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
Johannes Schickel
e00ae0918a AUDIO: Cleanup MT-32 code a bit.
This removes overwrites in ReportHandlerScummVM which are simply the default
implementation anyway. A side effect is that this silences/fixes a warning
about the former onProgramChanged to hide an virtual method due to parameter
differences.
2014-01-16 22:46:21 +01:00
Johannes Schickel
1eb10b1a46 AUDIO: Register EAS sound driver as plain sound type.
MIDI code will control volume via MIDI events thus the generated audio should
not be affected by mixer sound volumes.

The initial commit 0e6cdfd67580f75e912c5e92abb26821d032f74b added it as music
sound type. Might be copied from the (also) incorrect FluidSynth code.
2014-01-16 22:21:39 +01:00
Johannes Schickel
d99f23fb10 AUDIO: Register FluidSynth driver as plain sound type.
MIDI code will control volume via MIDI events thus the generated audio should
not be affected by mixer sound volumes.

The initial commit(s) in d4d045b1174b4a48659f39f026ade42684b679bf /
13dc149ded691e718905049990dd0220230c500e added it as music sound type.
So, this seems to be a long standing issue.
2014-01-16 22:20:23 +01:00
Johannes Schickel
5ea87462e4 AUDIO: Register MT-32 emulator as plain sound type.
Formerly the audio stream was registered as sfx. This is incorrect behavior
since the client code will control music volume with MIDI events on its own.
It seems 67b311713d8f4cfcd460a9649e0075f24278a048 introduced this very long
ago.

This should fix unintended coupling of sfx volume and music volume in BASS.
2014-01-16 22:18:47 +01:00
Johannes Schickel
b22aeafcc8 AUDIO: Do not add extrapath to SearchMan in MT-32 emu code.
At the point where the emulator is created extrapath should already been
added to extrapath. If not, the check in checkDevice already failed and thus
adding it would be too late anyway.

It seems this was added in 805b21181ab7138da6960ade703b25716120fc29. The
comment about it being a HACK has been removed in bbad3f333a9227ccb1de633a0fe92d9e01ad7bb3
but it's not clear to my why... At any rate, this should not be here.
2013-11-03 19:36:04 +01:00
Filippos Karapetis
eb84b9fc02 MT-32: Update to munt 1.3.0 2013-09-24 11:30:46 +03:00
Filippos Karapetis
00992c1e68 MT-32: Sync with the latest changes in munt 2013-08-21 03:41:30 +03:00