From b10fe6dca8cbec3a9aabb230bf42574171062121 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sun, 26 Nov 2017 03:47:52 +0300 Subject: Attempt to fix compatibility with C++98 --- src/adlmidi_opl3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/adlmidi_opl3.cpp') diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index 2d1f3e8..ab2d7c0 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -338,7 +338,7 @@ void OPL3::Touch_Real(unsigned c, unsigned volume, uint8_t brightness) if(brightness != 127) { - brightness = static_cast(std::round(127.0 * std::sqrt((static_cast(brightness)) * (1.0 / 127.0))) / 2.0); + brightness = static_cast(::round(127.0 * std::sqrt((static_cast(brightness)) * (1.0 / 127.0))) / 2.0); if(!do_modulator) modulator = (modulator | 63) - brightness + brightness * (modulator & 63) / 63; if(!do_carrier) -- cgit v1.2.3 From f539db058f610e253b2013df17e9ace62812399b Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sun, 26 Nov 2017 03:51:47 +0300 Subject: Again --- src/adlmidi_opl3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/adlmidi_opl3.cpp') diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index ab2d7c0..273f548 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -338,7 +338,7 @@ void OPL3::Touch_Real(unsigned c, unsigned volume, uint8_t brightness) if(brightness != 127) { - brightness = static_cast(::round(127.0 * std::sqrt((static_cast(brightness)) * (1.0 / 127.0))) / 2.0); + brightness = static_cast(::round(127.0 * ::sqrt((static_cast(brightness)) * (1.0 / 127.0))) / 2.0); if(!do_modulator) modulator = (modulator | 63) - brightness + brightness * (modulator & 63) / 63; if(!do_carrier) -- cgit v1.2.3