From 130b7dfb6dcf9d8b3c9f00801dd0b4bfdfb94bc2 Mon Sep 17 00:00:00 2001 From: Jeremy W. Sherman Date: Thu, 2 Feb 2012 17:26:00 -0500 Subject: aldo: patch to work with latest libao The patch has also been submitted upstream: https://savannah.nongnu.org/patch/index.php?7716 Closes #9957. Signed-off-by: Jack Nagel --- Library/Formula/aldo.rb | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/aldo.rb b/Library/Formula/aldo.rb index cd9d71e12..75db3c4e8 100644 --- a/Library/Formula/aldo.rb +++ b/Library/Formula/aldo.rb @@ -7,8 +7,43 @@ class Aldo < Formula depends_on 'libao' + def patches + # Fixes crash due to added field in libao-1.0. + # See: + # http://calypso.tux.org/pipermail/novalug/2011-March/027843.html + # https://savannah.nongnu.org/patch/index.php?7716 + DATA + end + def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end end + +__END__ +diff --git a/src/audioworkspace.cc b/src/audioworkspace.cc +index c8dd68a..d786e04 100644 +--- a/src/audioworkspace.cc ++++ b/src/audioworkspace.cc +@@ -31,6 +31,7 @@ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Giuseppe "denever" Martin + #include + #include + #include ++#include + + using namespace std; + using namespace libaudiostream; +@@ -104,10 +105,12 @@ oastream AudioWorkSpace::create_output_stream() + { + ao_sample_format format; + ++ memset(&format, '0', sizeof(format)); + format.bits = m_bits; + format.channels = m_channels; + format.rate = m_sample_rate; + format.byte_format = AO_FMT_LITTLE; ++ format.matrix = NULL; + + return oastream(format, m_device); + } -- cgit v1.2.3