Permalink
Browse files

MT32: Update to munt 2.3.0

This uses upstream commit 939cc986d9ffd044f8c6149361127ad5d94e430f

Closes gh-1091
  • Loading branch information...
tsoliman committed Dec 23, 2017
1 parent bb5e8d3 commit 50d79c5f265aad592ae7f17209653ccbb1fde488
Showing with 2,180 additions and 1,260 deletions.
  1. +212 −122 audio/softsynth/mt32/Analog.cpp
  2. +12 −19 audio/softsynth/mt32/Analog.h
  3. +403 −272 audio/softsynth/mt32/BReverbModel.cpp
  4. +14 −88 audio/softsynth/mt32/BReverbModel.h
  5. +34 −2 audio/softsynth/mt32/Enumerations.h
  6. +1 −1 audio/softsynth/mt32/File.cpp
  7. +1 −1 audio/softsynth/mt32/File.h
  8. +16 −1 audio/softsynth/mt32/FileStream.cpp
  9. +1 −1 audio/softsynth/mt32/FileStream.h
  10. +33 −32 audio/softsynth/mt32/LA32FloatWaveGenerator.cpp
  11. +16 −16 audio/softsynth/mt32/LA32FloatWaveGenerator.h
  12. +13 −4 audio/softsynth/mt32/LA32Ramp.cpp
  13. +2 −1 audio/softsynth/mt32/LA32Ramp.h
  14. +25 −32 audio/softsynth/mt32/LA32WaveGenerator.cpp
  15. +28 −14 audio/softsynth/mt32/LA32WaveGenerator.h
  16. +1 −1 audio/softsynth/mt32/MemoryRegion.h
  17. +1 −1 audio/softsynth/mt32/MidiEventQueue.h
  18. +2 −2 audio/softsynth/mt32/MidiStreamParser.cpp
  19. +1 −1 audio/softsynth/mt32/MidiStreamParser.h
  20. +12 −5 audio/softsynth/mt32/Part.cpp
  21. +1 −1 audio/softsynth/mt32/Part.h
  22. +120 −61 audio/softsynth/mt32/Partial.cpp
  23. +17 −5 audio/softsynth/mt32/Partial.h
  24. +38 −25 audio/softsynth/mt32/PartialManager.cpp
  25. +7 −3 audio/softsynth/mt32/PartialManager.h
  26. +1 −1 audio/softsynth/mt32/Poly.cpp
  27. +1 −1 audio/softsynth/mt32/Poly.h
  28. +3 −1 audio/softsynth/mt32/ROMInfo.cpp
  29. +1 −1 audio/softsynth/mt32/ROMInfo.h
  30. +39 −10 audio/softsynth/mt32/SampleRateConverter.cpp
  31. +9 −12 audio/softsynth/mt32/SampleRateConverter.h
  32. +7 −1 audio/softsynth/mt32/Structures.h
  33. +506 −216 audio/softsynth/mt32/Synth.cpp
  34. +36 −14 audio/softsynth/mt32/Synth.h
  35. +21 −10 audio/softsynth/mt32/TVA.cpp
  36. +1 −1 audio/softsynth/mt32/TVA.h
  37. +13 −6 audio/softsynth/mt32/TVF.cpp
  38. +1 −1 audio/softsynth/mt32/TVF.h
  39. +52 −32 audio/softsynth/mt32/TVP.cpp
  40. +1 −2 audio/softsynth/mt32/TVP.h
  41. +1 −1 audio/softsynth/mt32/Tables.cpp
  42. +1 −1 audio/softsynth/mt32/Tables.h
  43. +1 −1 audio/softsynth/mt32/Types.h
  44. +104 −11 audio/softsynth/mt32/c_interface/c_interface.cpp
  45. +88 −16 audio/softsynth/mt32/c_interface/c_interface.h
  46. +117 −79 audio/softsynth/mt32/c_interface/c_types.h
  47. +61 −18 audio/softsynth/mt32/c_interface/cpp_interface.h
  48. +14 −4 audio/softsynth/mt32/config.h
  49. +2 −2 audio/softsynth/mt32/globals.h
  50. +6 −16 audio/softsynth/mt32/internals.h
  51. +1 −1 audio/softsynth/mt32/mmath.h
  52. +3 −16 audio/softsynth/mt32/module.mk
  53. +2 −2 audio/softsynth/mt32/mt32emu.h
  54. +6 −6 audio/softsynth/mt32/srchelper/InternalResampler.cpp
  55. +6 −6 audio/softsynth/mt32/srchelper/InternalResampler.h
  56. +6 −6 audio/softsynth/mt32/srchelper/SamplerateAdapter.cpp
  57. +7 −5 audio/softsynth/mt32/srchelper/SamplerateAdapter.h
  58. +7 −7 audio/softsynth/mt32/srchelper/SoxrAdapter.cpp
  59. +7 −5 audio/softsynth/mt32/srchelper/SoxrAdapter.h
  60. +3 −3 audio/softsynth/mt32/srchelper/srctools/include/FIRResampler.h
  61. +4 −4 audio/softsynth/mt32/srchelper/srctools/include/FloatSampleProvider.h
  62. +3 −3 audio/softsynth/mt32/srchelper/srctools/include/IIR2xResampler.h
  63. +3 −3 audio/softsynth/mt32/srchelper/srctools/include/LinearResampler.h
  64. +3 −3 audio/softsynth/mt32/srchelper/srctools/include/ResamplerModel.h
  65. +4 −4 audio/softsynth/mt32/srchelper/srctools/include/ResamplerStage.h
  66. +3 −3 audio/softsynth/mt32/srchelper/srctools/include/SincResampler.h
  67. +1 −1 audio/softsynth/mt32/srchelper/srctools/src/FIRResampler.cpp
  68. +4 −4 audio/softsynth/mt32/srchelper/srctools/src/IIR2xResampler.cpp
  69. +1 −1 audio/softsynth/mt32/srchelper/srctools/src/LinearResampler.cpp
  70. +5 −5 audio/softsynth/mt32/srchelper/srctools/src/ResamplerModel.cpp
  71. +3 −3 audio/softsynth/mt32/srchelper/srctools/src/SincResampler.cpp

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,5 +1,5 @@
/* Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 Dean Beeler, Jerome Fisher
* Copyright (C) 2011-2016 Dean Beeler, Jerome Fisher, Sergey V. Mikayev
* Copyright (C) 2011-2017 Dean Beeler, Jerome Fisher, Sergey V. Mikayev
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -20,13 +20,11 @@
#include "globals.h"
#include "internals.h"
#include "Types.h"
#include "Enumerations.h"
#include "Types.h"
namespace MT32Emu {
class AbstractLowPassFilter;
/* Analog class is dedicated to perform fair emulation of analogue circuitry of hardware units that is responsible
* for processing output signal after the DAC. It appears that the analogue circuit labeled "LPF" on the schematic
* also applies audible changes to the signal spectra. There is a significant boost of higher frequencies observed
@@ -38,21 +36,16 @@ class AbstractLowPassFilter;
*/
class Analog {
public:
Analog(const AnalogOutputMode mode, const bool oldMT32AnalogLPF);
~Analog();
void process(Sample *outStream, const Sample *nonReverbLeft, const Sample *nonReverbRight, const Sample *reverbDryLeft, const Sample *reverbDryRight, const Sample *reverbWetLeft, const Sample *reverbWetRight, Bit32u outLength);
unsigned int getOutputSampleRate() const;
Bit32u getDACStreamsLength(Bit32u outputLength) const;
void setSynthOutputGain(float synthGain);
void setReverbOutputGain(float reverbGain, bool mt32ReverbCompatibilityMode);
private:
AbstractLowPassFilter &leftChannelLPF;
AbstractLowPassFilter &rightChannelLPF;
SampleEx synthGain;
SampleEx reverbGain;
Analog(Analog &);
static Analog *createAnalog(const AnalogOutputMode mode, const bool oldMT32AnalogLPF, const RendererType rendererType);
virtual ~Analog() {}
virtual unsigned int getOutputSampleRate() const = 0;
virtual Bit32u getDACStreamsLength(const Bit32u outputLength) const = 0;
virtual void setSynthOutputGain(const float synthGain) = 0;
virtual void setReverbOutputGain(const float reverbGain, const bool mt32ReverbCompatibilityMode) = 0;
virtual bool process(IntSample *outStream, const IntSample *nonReverbLeft, const IntSample *nonReverbRight, const IntSample *reverbDryLeft, const IntSample *reverbDryRight, const IntSample *reverbWetLeft, const IntSample *reverbWetRight, Bit32u outLength) = 0;
virtual bool process(FloatSample *outStream, const FloatSample *nonReverbLeft, const FloatSample *nonReverbRight, const FloatSample *reverbDryLeft, const FloatSample *reverbDryRight, const FloatSample *reverbWetLeft, const FloatSample *reverbWetRight, Bit32u outLength) = 0;
};
} // namespace MT32Emu
Oops, something went wrong.

0 comments on commit 50d79c5

Please sign in to comment.