pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/audio/furnace
Module Name: pkgsrc
Committed By: nia
Date: Mon Dec 2 07:47:47 UTC 2024
Modified Files:
pkgsrc/audio/furnace: distinfo
Added Files:
pkgsrc/audio/furnace/patches: patch-src_engine_export_zsm.cpp
Log Message:
furnace: Fix ambiguous use of log() on integer in C++ code.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/audio/furnace/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/audio/furnace/patches/patch-src_engine_export_zsm.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/audio/furnace/distinfo
diff -u pkgsrc/audio/furnace/distinfo:1.1 pkgsrc/audio/furnace/distinfo:1.2
--- pkgsrc/audio/furnace/distinfo:1.1 Tue Nov 12 21:27:33 2024
+++ pkgsrc/audio/furnace/distinfo Mon Dec 2 07:47:47 2024
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2024/11/12 21:27:33 nia Exp $
+$NetBSD: distinfo,v 1.2 2024/12/02 07:47:47 nia Exp $
BLAKE2s (fmtlib-fmt-e57ca2e3685b160617d3d95fcd9e789c4e06ca88.tar.gz) = 0c26788aa7386a5754de960f089559616662a09030d4be69004deda6e61f678a
SHA512 (fmtlib-fmt-e57ca2e3685b160617d3d95fcd9e789c4e06ca88.tar.gz) = b1bcd06c93bfec3f7a41c31a90ea55d653062f12701e1531bcfbbd27b7deddb3429e77655e4586758aa0992a4ccce30af66117f325583268e5f38d3908ae91a3
@@ -11,3 +11,4 @@ SHA512 (superctr-adpcm-ef7a217154badc3b9
Size (superctr-adpcm-ef7a217154badc3b99978ac481b268c8aab67bd8.tar.gz) = 5497 bytes
SHA1 (patch-CMakeLists.txt) = e924b30f612f4e1e6e38987ad8365008045e113e
SHA1 (patch-extern_imgui__patched_backends_imgui__impl__opengl3__loader.h) = 97586b9d39f8dd25ec5631b1251ea8bc33232cf6
+SHA1 (patch-src_engine_export_zsm.cpp) = 9afbf92ff465fdf1ec9e81d3d93831e4872b1309
Added files:
Index: pkgsrc/audio/furnace/patches/patch-src_engine_export_zsm.cpp
diff -u /dev/null pkgsrc/audio/furnace/patches/patch-src_engine_export_zsm.cpp:1.1
--- /dev/null Mon Dec 2 07:47:47 2024
+++ pkgsrc/audio/furnace/patches/patch-src_engine_export_zsm.cpp Mon Dec 2 07:47:47 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_engine_export_zsm.cpp,v 1.1 2024/12/02 07:47:47 nia Exp $
+
+Fix "error: call of overloaded 'log(int)' is ambiguous" on SunOS.
+
+--- src/engine/export/zsm.cpp.orig 2024-12-02 07:46:38.294426934 +0000
++++ src/engine/export/zsm.cpp
+@@ -618,7 +618,7 @@ void DivExportZSM::run() {
+ // Tunings offsets that exceed a half semitone
+ // will simply be represented in a different key
+ // by nature of overflowing the signed char value
+- signed char tuningoffset=(signed char)(round(3072*(log(e->song.tuning/440.0)/log(2))))&0xff;
++ signed char tuningoffset=(signed char)(round(3072*(log(e->song.tuning/440.0)/log(2.0))))&0xff;
+ zsm.writeSync(0x01,tuningoffset);
+ // Set optimize flag, which mainly buffers PSG writes
+ // whenever the channel is silent
Home |
Main Index |
Thread Index |
Old Index