diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /audio/dexed/files/patch-Source_PluginData.cpp | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'audio/dexed/files/patch-Source_PluginData.cpp')
| -rw-r--r-- | audio/dexed/files/patch-Source_PluginData.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/audio/dexed/files/patch-Source_PluginData.cpp b/audio/dexed/files/patch-Source_PluginData.cpp deleted file mode 100644 index 978d97954d32..000000000000 --- a/audio/dexed/files/patch-Source_PluginData.cpp +++ /dev/null @@ -1,26 +0,0 @@ -- from Bug 265342 - audio/dexed: fix build on armv7 arm64 - ---- Source/PluginData.cpp.orig 2022-07-20 04:30:35 UTC -+++ Source/PluginData.cpp -@@ -103,18 +103,14 @@ void Cartridge::packProgram(uint8_t *src, int idx, Str - * This function normalize data that comes from corrupted sysex. - * It used to avoid engine crashing upon extreme values - */ --char normparm(char value, char max, int id) { -- if ( value <= max && value >= 0 ) -+uint8_t normparm(uint8_t value, uint8_t max, int id) { -+ if ( value <= max ) - return value; - - // if this is beyond the max, we expect a 0-255 range, normalize this - // to the expected return value; and this value as a random data. - -- value = abs(value); -- -- char v = ((float)value)/255 * max; -- -- return v; -+ return ((float)value)/255 * max; - } - - void Cartridge::unpackProgram(uint8_t *unpackPgm, int idx) { |
