Commit graph

105 commits

Author SHA1 Message Date
Christoph Oelckers
c5b6c0d317 added missing check for AMF format in module loader 2022-07-18 11:03:46 +02:00
Christoph Oelckers
9fbc2ec095 Version 1.1.9 2022-06-06 18:09:47 +02:00
Emanuele Disco
ad00418fec - fixed fluidsynth settings getting reset to default during midi init playback sequence 2022-04-12 08:52:54 +02:00
Emanuele Disco
a3b79ca8f6 - fixed FileSystemSoundFontReader fail to read gus patches.
The method open_file use read text flags to open a file and it fail to check the header of the gus patches, by setting the flag to read binary fix the issue.
2022-04-09 22:41:24 +02:00
Emanuele Disco
f4cfb36f4a Fixes for gus and wildmidi emulation
- fixed gus emulation not working with DMXGUS and DMXGUSC lump
- gus_patchdir and/or ULTRADIR variable can be used to load custom gus patches together with main patches set with midi_config (not required when using DMXGUS(C) lump configuration)
- gus_patchdir and ULTRADIR variable can be used with both DMXGUS and timidity configuration when using GUS emulation
- fixed wildmidi emulation not working with collection of gus patches (resource files)
- removed sf2 files from midi_config items for gus emulation (when using sf2 with gus emulation the sound is distorted), only resource files will be listed to be used with gus emulation.
- removed the `already loaded` check from timidity setup in order to recreate the reader even when changing the gus memory.
2022-04-09 22:41:24 +02:00
Christoph Oelckers
6b5aebf6a3 - fixed inverted error checking logic for loading a patch set in the WildMidi player. 2021-12-29 19:07:32 +01:00
Christoph Oelckers
8375c06737 - apparently newer GCCs do not like unnamed structs in typedefs anymore. 2021-11-14 09:42:37 +01:00
Chris Robinson
5ac16461ad Add missing GetStreamInfoEx for CDSong 2021-11-06 09:00:11 +01:00
Chris Robinson
592bb9126b Handle non-int16 samples in dumb_decode_vorbis 2021-11-06 09:00:11 +01:00
Chris Robinson
ae70ea40f2 Better handle various formats in SndFileSong 2021-11-06 09:00:11 +01:00
Chris Robinson
db05f4a8ef Implement ZMusic_GetStreamInfo using GetStreamInfoEx 2021-11-06 09:00:11 +01:00
Chris Robinson
3696d8fa27 Add a new ZMusic_GetStreamInfoEx function
This provides cleaner info about the stream format
2021-11-06 09:00:11 +01:00
Chris Robinson
dd76ab1fce Add a 32-bit float sample type 2021-11-06 09:00:11 +01:00
alexey.lysiuk
d8e6e28879
- directory should be the last argument for CMake
Fixes #29
2021-07-18 19:55:44 +03:00
Braden Obrzut
95e6bfcd8c Better support for vendoring
- Allow ZLIB::ZLIB target to be provided by a unified build
- Added ZMUSIC_INSTALL variable to allow disabling of install rules (mostly due to how install(EXPORT) works)
- Static libraries don't need dllimport/dllexport on Windows
- Fixed: INTERFACE include directory was missing from zmusic/zmusiclite targets when using with add_subdirectory
- use_fast_math CMake function updated to allow source files to be passed (for GZDoom/Raze)
2021-05-31 22:22:57 +02:00
Cacodemon345
514ef6b528 Add handling for KeyPress events and avoid calling snd_seq_sync_output_queue twice 2021-05-25 13:57:46 +03:00
Cacodemon345
fee3bc352e Improve ALSA MIDI backend
1. No longer excludes builtin MIDI passthrough ports.
2. "GZDoom" references changed to "ZMusic Program".
3. No longer bugs out when MIDI playback is paused.
2021-05-25 13:57:46 +03:00
alexey.lysiuk
2b291705f2 - support dynamic loading of FluidSynth 2.2 2021-05-19 09:13:53 +03:00
alexey.lysiuk
0ee7aa9a5b - support arbitrary number of FluidSynth dynamic library names 2021-05-19 09:13:32 +03:00
alexey.lysiuk
69692696ec - load FluidSynth dynamic library once
https://forum.zdoom.org/viewtopic.php?t=70710
2021-05-19 09:12:59 +03:00
alexey.lysiuk
2cae98b442 - update library version number 2021-05-19 09:12:31 +03:00
alexey.lysiuk
74ff273a3d - fixed file header in MIDI wave writer
https://forum.zdoom.org/viewtopic.php?t=72161
2021-05-05 11:20:02 +03:00
alexey.lysiuk
0c2ac8cbf3 - open MIDI wave output as binary file
https://forum.zdoom.org/viewtopic.php?t=72161
2021-05-05 11:20:02 +03:00
alexey.lysiuk
e79fdcef2c - forward callback to play device in MIDI wave writer
https://forum.zdoom.org/viewtopic.php?t=72161
2021-05-05 11:18:04 +03:00
alexey.lysiuk
0f1d954646 - avoid passing nullptr args to MIDI streamer
https://forum.zdoom.org/viewtopic.php?t=72161
2021-05-05 11:17:45 +03:00
alexey.lysiuk
e598ab7f1c - fixed file closing in standard MIDI file writer
source/zmusic/zmusic.cpp:506:2: warning: deleting pointer to incomplete type '__sFILE' may cause undefined behavior [-Wdelete-incomplete]
2021-03-19 10:04:41 +02:00
alexey.lysiuk
ba9e9da6e6 - fixed incorrect buffer size in wave writer device
See #23
2021-03-19 09:47:22 +02:00
alexey.lysiuk
a192e66049 - updated continuous integration workflow
* added separate targets with static and dynamic loading of dependencies
* specified continuous integration runners explicitly
* replaced 32-bit Windows target with 64-bit debug configuration
2021-03-15 11:07:48 +02:00
alexey.lysiuk
f24498950d
- made sndfile imported library global
CMake earlier than 3.18 does not support library aliases to non-global imported targets.
This fixes #22.
2021-03-14 19:36:16 +02:00
Christoph Oelckers
6bcbc7aeb5 - multiply master volume for module player by 4.
The default here is far too quiet compared to the other players and needs compensation.
2021-03-14 08:34:56 +01:00
Christoph Oelckers
4c223a7de7 - fixed bad return for zmusic_wildmidi_config change. 2021-03-13 23:53:32 +01:00
Christoph Oelckers
ecad4aaf06 - added ZMusic_GetDeviceType function to return the currently active MIDI synth. 2021-03-13 23:53:07 +01:00
Braden Obrzut
b3c4b55dab Overhaul CMakeLists to conform with modern CMake
- Prefer target properties instead of setting variables whenever possible.
  A zmusic-obj target now exists to represent the commonality between zmusic
  and zmusiclite.
- Factored out as much as possible from global settings to per target settings
  which will make it easier to support using ZMusic as a submodule. Moved
  helper functions into a ZUtility.cmake module.
- We now generate and install ZMusicConfig.cmake so find_package(ZMusic)
  will work either automatically or given ZMusic_DIR is set.
- CPack is enabled although some refinement is still needed.
- Requires CMake >= 3.13 which is newer than I would normally like, but given
  how no one like to refactor these things it may be better to deal with the
  short term pain of going a little aggressive on the requirement in order to
  avoid having to make things ugly. Especially given that these scripts have
  a tendency to be copy/pasted into sister projects. CMake itself has very few
  dependencies so users of old Linux distros should be able to easily compile
  a supported version of CMake.
- On Windows CMake >= 3.15 is required for redistributable results.
- Cleaned out bits that were copied from GZDoom but not relevant to ZMusic.
2021-02-16 01:38:10 -05:00
Rachael Alexanderson
0bd339d737
Create README.md 2021-01-02 06:47:39 -05:00
Rachael Alexanderson
d9702317ba - demote IMPORT_EXECUTABLES to a warning, address issue #19 2021-01-02 05:45:05 -05:00
Dennis Meuwissen
9e950c164b Add detection of Opus comment tags in Ogg files. 2020-11-04 11:23:51 +01:00
Wohlstand
eac26c3aca libADLMIDI and libOPNMIDI: Fixed an infinite loop caused the stuck
Recently I've got the report from @drfrag666 that at LZDoom some banks
do cause the dead freeze and that is probably because of the merge
problems. However, after my research, I found the bug at me: in a very
special case, a zero delay value may appear that will cause the stuck.
2020-10-16 10:54:25 +02:00
Wohlstand
a175de1531 The small update at libADLMIDI
- Fixed a bug of DMX frequency, accidentally ported from DMX
- Removed the useless adlmidi_sequencer.cpp file
- Synchronize all files of chipset with OPL3-BE
2020-10-15 13:31:04 +02:00
Wohlstand
8eff49f731 libADLMIDI & libOPNMIDI: Apply the important fix
Fixed an incorrect timer processing when using a real-time interface.
This bug does directly affect the case of ZMusic which does use of RealTime API of both libraries.
2020-10-11 07:58:12 +02:00
Vitaly Novichkov
8c9f402c31 ADLMIDI: Set the different gain per volume model
Different volume models were means louder or quiter sounding of the rest of notes in the song. And to avoid the mess between volume models, let's use different gain factor for each volume model?
2020-10-04 08:03:44 +02:00
Wohlstand
2f5332a461 ADL & OPN: Added SysEx calls
They are supported by those engines and needed for XG and GS specific controls: GS custom drums are working and supported!
2020-10-04 08:03:44 +02:00
Wohlstand
61f54f9487 ADLMIDI: Don't even try to load custom bank if disabled 2020-10-04 08:03:44 +02:00
Wohlstand
14c771f609 OPNMIDI: Fixed an inability to load a custom bank 2020-10-04 08:03:44 +02:00
Wohlstand
13623aeda8 ADL & OPN MIDI: Fixed some MSVC warnings 2020-10-04 08:03:44 +02:00
Wohlstand
c4f24b47f4 OPNMIDI: Try to remive the unistd header at PMDWin emulator
Seems it doesn't required here...
2020-10-04 08:03:44 +02:00
Wohlstand
6b2e4b9153 Use the "Auto" volume model by default at libADLMIDI
After a small set of tests, it's fine to use the "AUTO" volume model by default.
Every embedded bank and every WOPL file has a setting of a volume model that matches to the behavior of the original OPL2/3 driver of each volume model.
2020-10-04 08:03:44 +02:00
Wohlstand
03afaef324 Update default bank and some settings of libADLMIDI 2020-10-04 08:03:44 +02:00
Wohlstand
72c23d98a3 Update libOPNMIDI library to 1.5.0
## 1.5.0   2020-09-28
 * Drum note length expanding is now supported in real-time mode (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
 * Added support for OPNA chip with Neko Project II Kai YM2602 emulator usage (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
 * Added VGM file dumper which allows to output OPN2 commands into VGM file. (A new MIDI to VGM tool is now created with basing on libOPNMIDI)
 * Fixed an incorrect work of CC-121 (See https://github.com/Wohlstand/libADLMIDI/issues/227 for details)
 * Internality has been refactored and improved
2020-10-04 08:03:44 +02:00
Wohlstand
1d4a016c41 Update libADLMIDI up to 1.5.0
## 1.5.0   2020-09-28
 * Drum note length expanding is now supported in real-time mode (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
 * Channels manager has been improved (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
 * Nuked OPL3 1.8 emulator got some optimizations ported from 1.7 where they are was applied previously (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
 * Reworked rhythm-mode percussions system, WOPL banks with rhythm-mode percussions
 * Added Public Domain Opal OPL3 emulator made by Reality (a team who originally made the Reality Adlib Tracker) (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
 * Added LGPL licensed JavaOPL3 emulator made by Robson Cozendey in Java and later rewritten into C++ for GZDoom (Thanks to [Jean Pierre Cimalando](https://github.com/jpcima) for a work!)
 * Fully rewritten an embedded bank database format, embedded banks now supports a wider set (more than 127:127 instruments in one bank)
 * Improved accuracy of the DMX volume model, include the buggy AM interpretation
 * Improved accuracy of Apogee volume model, include the bug of AM instruments
 * Improved accuracy of the Win9X volume model
 * Removed C++ extras. C++-bounded instruments tester is useless since a real-time MIDI API can completely replace it
 * Added AIL volume model
 * Added Generic FM variant of Win9X volume model
 * Fixed an incorrect work of CC-121 (See https://github.com/Wohlstand/libADLMIDI/issues/227 for details)
 * Added HMI volume model (Thanks to [Alexey Khokholov](https://github.com/nukeykt) for help with research!)
 * Added frequency models, assigned to every volume model: AIL, HMI, DMX, Apogee, 9X, and the Generic formula
2020-10-04 08:03:44 +02:00
Wohlstand
9461e3cc62 Ignore *.user* files, generated by Qt Creator IDE 2020-10-04 08:03:44 +02:00