Commit Graph

769 Commits

Author SHA1 Message Date
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
Paweł Kołodziejski
8025fcd1d6 AUDIO: Increase number of audio mixer channels to 32 2020-09-23 22:58:53 +02:00
Kari Salminen
7ff9d16bf2 CINE: Loop Amiga music instead of playing it once
Make Amiga music loop until fade out when changing scene. This is
based on watching a video of Future Wars Amiga walkthrough, not on
playing the Amiga version or reading its disassembly. But it does seem
that the music loops instead of just playing once.
2020-09-10 00:34:32 +01:00
athrxx
38ddb196b3 AUDIO: (FM-TOWNS) - whitespace 2020-09-08 23:02:34 +02:00
athrxx
85755c893a AUDIO: (FM-TOWNS) - make use of Common::ObjectPool 2020-09-08 23:02:33 +02:00
Kari Salminen
d206dbcdae AUDIO: Add periodScaleDivisor to Paula and SoundFx
Add support for dividing the playing rate of Paula and SoundFx audio
by integers other than 1. This is going to be used in the Cine engine
for dividing the playing rate of music in the Amiga version of Operation
Stealth by 2 to get it to sound right. Otherwise it sounds too high
pitched.

This is groundwork for fixing bug #11676.
2020-09-05 22:57:03 +02:00
Kari Salminen
9098af1029 AUDIO: Fix Amiga's SoundFx instrument loading.
The instrument names are a maximum of 22 characters in length but
were previously shortened to a maximum of 8 characters. At least in
Amiga versions of Operation Stealth some of the instrument names are
longer than 8 characters and failed to be loaded because of this.
Raising the limit from 8 to 22 characters fixes this.

Addresses bug #11676.
2020-09-05 22:57:03 +02:00
Pawel Kolodziejski
d5304e2568 ALL: Synced with ScummVM - rev: 33a47d23b8 2020-09-03 02:21:14 +02:00
Torbjörn Andersson
58a77abded FLUIDSYNTH: Prefer in-memory SoundFont data over global setting
When an engine provides in-memory SoundFont data, use that unless a
SoundFont has been explicitly configured on the current game. Otherwise
a global SoundFont setting will always override it. Even overriding the
MIDI settings for the game and leaving the SoundFont setting blank did
not work for me.
2020-09-02 10:01:33 +02:00
Thierry Crozat
0b0af686f2 AUDIO: Fix error using template function with anonymous struct
Old gcc versions do not like using template function with anonymous
struct and error out.
2020-09-01 05:03:50 +01:00
Vladimir Menshakov
201d2675ad AUDIO: Replace memsets on structures with ctors with ARRAYCLEAR() 2020-08-31 21:57:14 +01:00
Thierry Crozat
f3cfe11ee6 I18N: Consistency fix for SoundFont in messages 2020-08-31 16:35:56 +01:00
Eugene Sandulenko
8d27246a83 I18N: Adding full stops to the messages 2020-08-31 12:16:45 +02:00
aryanrawlani28
68d01321d6 GUI: U32: Downscale changes of U32, fix review issues
This commit addresses a range of changes, within scummvm subproject.

- Audio files, like mididrv, remove U32String based name and identifier, because ASCII only.
- mididrv.cpp had some wrong format for warning messages, fix those
- Message dialogs were modified to use default arguments more often, but reverting back to the orignal to minimize changes.
- SetTooltip has a fake constructor that takes in a string, and use it.
- U32Format had some break statements missing, add those.
- RemapWidget: Use fake constructor for setLabel and setTooltip, to make minimal changes
- SDL: setting text in clipboard no longer uses SDL_iconv_string
- TTS: Override base class "say" with strings, so tts->say can be used with normal strings too.
- About dialog: fix incorrect code for u32string variables
- Fix some extra brackets
- Some buttons were incorrectly removed from using translated labels, revert those
- Message Dialog: Pass default and alt buttons as const references
- Saveload Dialog: Use translations in missing places, use const-references. Also, use translations in a correct manner.
- Use const references for tooltip in GraphicsWidget, EditTextWidget, error.cpp
- DomainEditTextWidget: Use U32String for text
2020-08-30 14:43:41 +02:00
aryanrawlani28
4b6976c558 GUI: U32: Reduce number of files changed and fixes
Up until last commit, everything was working fine but the amount of files changed was too large. This commit tries to reduce the changes.

- Add a fake constructor to Keymap, text-to-speech, setDescription (save-state)
- Redirecting functions for PopUpWidget::appendEntry, ButtonWidget::setLabel, GUIErrorMessage
- Use the above functions and constructors to reduce changes in Engines
- Fix warnings being in unicode. Only output english text in - Warnings, Errors, etc.
- Mark some strings as "translation" strings. (Not yet added to POTFILES)
- Remove some CP related things from po/modules.mk
- Previously used some Common::convertToU32 where it was not necessary, replace this with u32constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28
185fb72783 GUI: U32: Improve U32 code
- Revert accidentally put translations in mt32.cpp
- Use U32::format in some places earlier missed
- Add %u and %i for u32::format
- Add support for GUIErrorMsgFormat to use u32::format internally
- Use the above whereever needed
- Improve linux tts by removing redundant code
- Some places I had changed nullptr -> "". Revert this
2020-08-30 14:43:41 +02:00
aryanrawlani28
a9bfe35216 GUI: U32: More issue fixes and general improvements
- Use the fake constructor for message dialog less often
- solve errors regarding comparision between string and u32string in midi
- solve errors in testbed/speech related to ttsMan->say
- fix unsigned comparision warning in tab.cpp
- fix issue with static strings and translations in sdl-graphics
2020-08-30 14:43:41 +02:00
aryanrawlani28
e22b32abfe GUI: U32: Use Common::U32String::format where necessary and GUIError to u32
- Where necessary as in, where translated messages are used.
- GUIErrorMessage now takes in U32String
- error messages across some engines use U32Strings. they are changed because they show a message dialog.
2020-08-30 14:43:41 +02:00
aryanrawlani28
b9a449480b GUI: U32: Remove u32::format references
- Removed because implicit conversion can simply handle this usecase
2020-08-30 14:43:41 +02:00
aryanrawlani28
f800ca4ada GUI: U32: Convert majority of code to use U32
This commit also includes some additional major changes.

- Return U32String from TransMan getTranslation()
- Change tooltips to be U32Strings
- Remove temporary code of convertToU32String
- U32 Support various dialogs (Browser, FileBrowser, Messages, Chooser, etc)
- U32 for music plugins
- U32 for OSD messages
- Add some helper functions to ustr.cpp
- Change default tooltips from nullptr & 0 -> ""
- Some runtime exceptions may occur when changing languages due to incorrect String::Format
2020-08-30 14:43:41 +02:00