⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268907 in webkit


Ignore:
Timestamp:
Oct 23, 2020, 1:06:05 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[GStreamer] Replace USE(WEBAUDIO_GSTREAMER) with USE(GSTREAMER)
https://bugs.webkit.org/show_bug.cgi?id=218083

Patch by Philippe Normand <pnormand@igalia.com> on 2020-10-23
Reviewed by Xabier Rodriguez-Calvar.

.:

A separate define was introduced back when we thought enabling WebAudio without enabling
<audio> would be a highly relevant scenario. I don't think it is very relevant, let's clean
this up.

  • Source/cmake/GStreamerChecks.cmake: Wrap the WebAudio platform bits in the USE(GSTREAMER) umbrella.

Source/WebCore:

  • platform/audio/FFTFrame.h: No need for G_{BEGIN,END}_DECLS dance anymore, these were added

upstream 9 years ago.

  • platform/audio/FFTFrameStub.cpp:
  • platform/audio/HRTFElevation.cpp:
  • platform/audio/gstreamer/FFTFrameGStreamer.cpp:
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r268793 r268907  
     12020-10-23  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] Replace USE(WEBAUDIO_GSTREAMER) with USE(GSTREAMER)
     4        https://bugs.webkit.org/show_bug.cgi?id=218083
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        A separate define was introduced back when we thought enabling WebAudio without enabling
     9        <audio> would be a highly relevant scenario. I don't think it is very relevant, let's clean
     10        this up.
     11
     12        * Source/cmake/GStreamerChecks.cmake: Wrap the WebAudio platform bits in the USE(GSTREAMER) umbrella.
     13
    1142020-10-21  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r268904 r268907  
     12020-10-23  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] Replace USE(WEBAUDIO_GSTREAMER) with USE(GSTREAMER)
     4        https://bugs.webkit.org/show_bug.cgi?id=218083
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        * platform/audio/FFTFrame.h: No need for G_{BEGIN,END}_DECLS dance anymore, these were added
     9        upstream 9 years ago.
     10        * platform/audio/FFTFrameStub.cpp:
     11        * platform/audio/HRTFElevation.cpp:
     12        * platform/audio/gstreamer/FFTFrameGStreamer.cpp:
     13
    1142020-10-22  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebCore/platform/audio/FFTFrame.h

    r268826 r268907  
    3232#include "AudioArray.h"
    3333
    34 #if USE(WEBAUDIO_GSTREAMER)
    35 #include <glib.h>
    36 G_BEGIN_DECLS
     34#if USE(GSTREAMER)
    3735#include <gst/fft/gstfftf32.h>
    38 G_END_DECLS
    39 #endif // USE(WEBAUDIO_GSTREAMER)
     36#endif // USE(GSTREAMER)
    4037
    4138#if USE(ACCELERATE)
     
    108105#endif
    109106
    110 #if USE(WEBAUDIO_GSTREAMER)
     107#if USE(GSTREAMER)
    111108    GstFFTF32* m_fft;
    112109    GstFFTF32* m_inverseFft;
    113110    UniqueArray<GstFFTF32Complex> m_complexData;
    114 #endif // USE(WEBAUDIO_GSTREAMER)
     111#endif // USE(GSTREAMER)
    115112
    116113    AudioFloatArray m_realData;
  • trunk/Source/WebCore/platform/audio/FFTFrameStub.cpp

    r268826 r268907  
    3030#if ENABLE(WEB_AUDIO)
    3131
    32 #if !OS(DARWIN) && !USE(WEBAUDIO_GSTREAMER)
     32#if !OS(DARWIN) && !USE(GSTREAMER)
    3333
    3434#include "FFTFrame.h"
     
    8181} // namespace WebCore
    8282
    83 #endif // !OS(DARWIN) && !USE(WEBAUDIO_GSTREAMER)
     83#endif // !OS(DARWIN) && !USE(GSTREAMER)
    8484
    8585#endif // ENABLE(WEB_AUDIO)
  • trunk/Source/WebCore/platform/audio/HRTFElevation.cpp

    r267544 r268907  
    5555constexpr float ResponseSampleRate = 44100;
    5656
    57 #if PLATFORM(COCOA) || USE(WEBAUDIO_GSTREAMER)
     57#if PLATFORM(COCOA) || USE(GSTREAMER)
    5858#define USE_CONCATENATED_IMPULSE_RESPONSES
    5959#endif
  • trunk/Source/WebCore/platform/audio/gstreamer/FFTFrameGStreamer.cpp

    r268826 r268907  
    2121#include "config.h"
    2222
    23 #if USE(WEBAUDIO_GSTREAMER)
     23#if USE(GSTREAMER)
    2424
    2525#include "FFTFrame.h"
     
    141141} // namespace WebCore
    142142
    143 #endif // USE(WEBAUDIO_GSTREAMER)
     143#endif // USE(GSTREAMER)
  • trunk/Source/cmake/GStreamerChecks.cmake

    r267882 r268907  
    1717              message(FATAL_ERROR "GStreamer static library libgstreamer-full-1.0 not found")
    1818          else ()
    19               SET_AND_EXPOSE_TO_BUILD(USE_WEBAUDIO_GSTREAMER TRUE)
    2019              SET_AND_EXPOSE_TO_BUILD(USE_GSTREAMER_FULL TRUE)
    2120          endif ()
     
    2827          if (ENABLE_WEB_AUDIO)
    2928              list(APPEND GSTREAMER_COMPONENTS audio fft)
    30               SET_AND_EXPOSE_TO_BUILD(USE_WEBAUDIO_GSTREAMER TRUE)
    3129          endif ()
    3230
     
    3634              if (NOT PC_GSTREAMER_AUDIO_FOUND OR NOT PC_GSTREAMER_FFT_FOUND)
    3735                  message(FATAL_ERROR "WebAudio requires the audio and fft GStreamer libraries. Please check your gst-plugins-base installation.")
    38               else ()
    39                   SET_AND_EXPOSE_TO_BUILD(USE_WEBAUDIO_GSTREAMER TRUE)
    4036              endif ()
    4137          endif ()
Note: See TracChangeset for help on using the changeset viewer.