[Bug 209742] devel/godot: Update to 2.0.4.1; add devel/godot-tools port

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 15 09:14:00 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209742

Shane <FreeBSD at ShaneWare.Biz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #172548|                            |maintainer-approval+
              Flags|                            |

--- Comment #49 from Shane <FreeBSD at ShaneWare.Biz> ---
Created attachment 172548
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=172548&action=edit
update for devel/godot

With the upcoming release of 11.0 we also need to add a small adjustment to
RtAudio.cpp.

This updated patch adds the following to the previous 2.0.4.1 update to the end
of files/patch-drivers_rtaudio_RtAudio.cpp. sampleRate is an unsigned int so
srate gets promoted to unsigned int, this means the result is always positive
so the use of abs() is of no use.

@@ -9025,7 +9043,7 @@ bool RtApiOss :: probeDeviceOpen( unsign
   }

   // Verify the sample rate setup worked.
-  if ( abs( srate - sampleRate ) > 100 ) {
+  if ( ( srate - sampleRate ) > 100 ) {
     close( fd );
     errorStream_ << "RtApiOss::probeDeviceOpen: device (" << ainfo.name << ")
does not support sample rate (" << sampleRate << ").";
     errorText_ = errorStream_.str();

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list