<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>126437</bug_id>
          
          <creation_ts>2014-01-03 10:13:46 -0800</creation_ts>
          <short_desc>webkit-2.3.3 USE_ACCELERATE_FFT &amp;&amp; WEBAUDIO_GSTREAMER build fails</short_desc>
          <delta_ts>2015-05-10 14:17:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Audio</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>126492</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeremy Huddleston Sequoia">jeremyhu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>calvaris</cc>
    
    <cc>crogers</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>964152</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2014-01-03 10:13:46 -0800</bug_when>
    <thetext>If USE_ACCELERATE_FFT is set, &lt;gst/fft/gstfftf32.h&gt; is not included, so WEBAUDIO_GSTREAMER builds fail with:

:info:build Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:46:38: error: use of undeclared identifier &apos;GstFFTF32Complex&apos;
:info:build     , m_complexData(std::make_unique&lt;GstFFTF32Complex[]&gt;(unpackedFFTDataSize(m_FFTSize)))
:info:build                                      ^
:info:build Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:46:55: error: expected expression
:info:build     , m_complexData(std::make_unique&lt;GstFFTF32Complex[]&gt;(unpackedFFTDataSize(m_FFTSize)))
:info:build                                                       ^
:info:build mv -f Source/WebCore/platform/audio/.deps/libPlatform_la-AudioBus.Tpo Source/WebCore/platform/audio/.deps/libPlatform_la-AudioBus.Plo

---

Some additional info:

webkitgtk-2.3.3 $ grep -R GstFFTF32Complex *
Source/WebCore/platform/audio/FFTFrame.h:    std::unique_ptr&lt;GstFFTF32Complex[]&gt; m_complexData;
Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:    , m_complexData(std::make_unique&lt;GstFFTF32Complex[]&gt;(unpackedFFTDataSize(m_FFTSize)))
Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp:    , m_complexData(std::make_unique&lt;GstFFTF32Complex[]&gt;(unpackedFFTDataSize(m_FFTSize)))

$ grep -R GstFFTF32Complex /opt/local/include/gstreamer-1.0/
/opt/local/include/gstreamer-1.0/gst/fft/gstfftf32.h:typedef struct _GstFFTF32Complex GstFFTF32Complex;
/opt/local/include/gstreamer-1.0/gst/fft/gstfftf32.h: * GstFFTF32Complex:
/opt/local/include/gstreamer-1.0/gst/fft/gstfftf32.h:struct _GstFFTF32Complex
/opt/local/include/gstreamer-1.0/gst/fft/gstfftf32.h:                                         GstFFTF32Complex *freqdata);
/opt/local/include/gstreamer-1.0/gst/fft/gstfftf32.h:void          gst_fft_f32_inverse_fft   (GstFFTF32 *self, const GstFFTF32Complex *freqdata,


---

I tried to address the issue with the attached patch, but the build still fails (I&apos;ll followup with another ticket).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964154</commentid>
    <comment_count>1</comment_count>
      <attachid>220317</attachid>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2014-01-03 10:14:42 -0800</bug_when>
    <thetext>Created attachment 220317
gstreamer.patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964392</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-01-04 04:23:57 -0800</bug_when>
    <thetext>I think USE_ACCELERATE_FFT should be unset when webkitgtk is built on OSX. Can you please try that approach?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964424</commentid>
    <comment_count>3</comment_count>
    <who name="Jeremy Huddleston Sequoia">jeremyhu</who>
    <bug_when>2014-01-04 12:41:56 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; I think USE_ACCELERATE_FFT should be unset when webkitgtk is built on OSX. Can you please try that approach?

That&apos;s a reasonable request, but I won&apos;t be able to until #126438 is resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>968193</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-01-14 23:48:32 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; I think USE_ACCELERATE_FFT should be unset when webkitgtk is built on OSX. Can you please try that approach?
&gt; 
&gt; That&apos;s a reasonable request, but I won&apos;t be able to until #126438 is resolved.

Hum I&apos;m not so sure about that but I didn&apos;t really have a close look at the other bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1029842</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-08-18 13:29:17 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I think USE_ACCELERATE_FFT should be unset when webkitgtk is built on OSX. Can you please try that approach?

Actually now I think it&apos;d make more sense to use the FFTFrameMac implementation on OSX instead of the GStreamer backend. The main reason is that the Mac version would likely perform better (but I don&apos;t have benchmarks to prove it :))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1049510</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2014-11-18 09:53:07 -0800</bug_when>
    <thetext>*** Bug 126438 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093579</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-05-10 14:17:00 -0700</bug_when>
    <thetext>I believe this issue is obsolete based on comments in bug #126492. If this issue is still present in 2.8.1 or 2.9.1 please leave a note so we can reopen.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>220317</attachid>
            <date>2014-01-03 10:14:42 -0800</date>
            <delta_ts>2014-01-03 10:14:42 -0800</delta_ts>
            <desc>gstreamer.patch</desc>
            <filename>gstreamer.patch</filename>
            <type>text/plain</type>
            <size>955</size>
            <attacher name="Jeremy Huddleston Sequoia">jeremyhu</attacher>
            
              <data encoding="base64">LS0tIFNvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL2F1ZGlvL0ZGVEZyYW1lLmgub3JpZwkyMDEzLTEy
LTA0IDIzOjI3OjAxLjAwMDAwMDAwMCAtMDgwMAorKysgU291cmNlL1dlYkNvcmUvcGxhdGZvcm0v
YXVkaW8vRkZURnJhbWUuaAkyMDE0LTAxLTAzIDEwOjA3OjQyLjAwMDAwMDAwMCAtMDgwMApAQCAt
MzksMzEgKzM5LDI3IEBACiAKICNpZiBVU0VfQUNDRUxFUkFURV9GRlQKICNpbmNsdWRlIDxBY2Nl
bGVyYXRlL0FjY2VsZXJhdGUuaD4KLSNlbmRpZgotCi0jaWYgIVVTRV9BQ0NFTEVSQVRFX0ZGVAot
CisjZWxzZQogI2lmIFVTRShXRUJBVURJT19NS0wpCiAjaW5jbHVkZSAibWtsX2RmdGkuaCIKICNl
bmRpZiAvLyBVU0UoV0VCQVVESU9fTUtMKQogCi0jaWYgVVNFKFdFQkFVRElPX0dTVFJFQU1FUikK
LSNpbmNsdWRlI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