483 Commits

Author SHA1 Message Date
Paul Gilbert
b312c8fe9d AUDIO: Add titanic to list of engines using wave files 2016-08-05 19:19:17 -04:00
Willem Jan Palenstijn
567054d829 AUDIO: Fix build 2016-07-31 08:55:12 +02:00
Eugene Sandulenko
30498bfbf0 AUDIO: Fix indentation 2016-07-31 09:28:46 +03:00
Torbjörn Andersson
9382dab811 AUDIO: Fix audio corruption in MS ADPCM decoder
Since _decodedSamples[] is filled with either 2 or 4 samples, we
can't use 1 - (count - 1) to "ensure that acts as a FIFO". When
we have 4 samples, that index will become negative, putting
uninitialized data into the buffer.

We could still use a similar trick, but I think it's much clearer
to use an index variable like this. We need an addition variable
either way.
2016-07-06 20:51:28 +02:00
Colin Snover
848abbee06 AUDIO: Fix incorrect forward declaration 2016-06-21 08:33:50 -05:00
Colin Snover
cbc3b773aa AUDIO: Make WAV streams seekable
This allows raw PCM in WAVE containers to have duration and be
seekable, and opens the door for ADPCM streams to be seekable later
if necessary.

This change is needed to avoid duplication of RIFF/WAVE container
parsing for SCI engine, which uses raw PCM WAVE files and needs to
be able to determine their lengths.
2016-06-19 14:48:33 -05:00
Eugene Sandulenko
8e0447e926 AUDIO: Fix memory corruption.
Since it was --voice, we were reading element index -1.
2016-05-31 17:12:18 +02:00
Eugene Sandulenko
33184e822d AUDIO: Plug potential memory leak 2016-05-15 12:26:15 +02: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
Tobia Tesan
914537ab52 JANITORIAL: Mark audio/decoders/vorbis as: used in Wintermute 2016-03-28 12:36:41 +02: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
Alexandre Detiste
6c298e964f JANITORIAL: Typos detected with lintian & grep 2016-02-15 18:27:02 +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
Ori Avtalion
d8045c6727 JANITORIAL: Fix clang printf warnings 2016-01-07 14:55:32 +02: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
Eugene Sandulenko
82c98e9803 Merge pull request #625 from digitall/rate-hack
AUDIO: Add support for sample rates >65kHz.
2015-11-09 16:39:17 +01:00
Torbjörn Andersson
85ce901c4a AUDIO: Fix comment typo 2015-10-01 20:51:34 +02:00
Christian Krause
1fdeb98e70 AUDIO: Fix compiler warning
This commit fixes a compiler warning about a "set but not used"
variable. The warning was introduced by commit 2f707bf2.
2015-09-15 20:48:09 -04:00
Matthew Hoops
8165e9aa4c AUDIO: Fix uninitialized read in MP3 initialization
Thanks to chkr-private for finding the issue
2015-09-15 20:44:09 -04:00
Matthew Hoops
c8a7e39e05 AUDIO: Mark the old Codec class as deprecated
Once QuickTime audio edits are rewritten to use PacketizedAudioStream, we can remove this class.
2015-08-30 21:01:43 -04:00
Matthew Hoops
72239a25f9 AUDIO: Add a NullAudioStream for streams that are dead-on-arrival 2015-08-30 21:00:54 -04:00
Matthew Hoops
331d8ece21 AUDIO: Add a packetized version of ADPCM streams 2015-08-30 19:53:54 -04:00
Matthew Hoops
3aa9e2c581 AUDIO: Add a packetized version of the PCM stream 2015-08-30 19:53:54 -04:00
Matthew Hoops
a64aff0287 AUDIO: Add a class to easily make stateless PacketizedAudioStreams 2015-08-30 19:53:54 -04:00
Matthew Hoops
562234b96b AUDIO: Implement a packetized version of MP3 2015-08-30 19:53:53 -04:00
Matthew Hoops
ccd8dbf4ba AUDIO: Add an AudioStream subclass for packetized audio 2015-08-30 19:53:53 -04:00
Matthew Hoops
52f67cba39 AUDIO: Split the seeking MP3 class from the base decoding stream 2015-08-30 19:53:53 -04:00
Matthew Hoops
030e4d0608 AUDIO: Make Rewindable- and SeekableAudioStream inherit virtually 2015-08-30 19:53:53 -04: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