< prev index next >

modules/javafx.media/src/main/native/jfxmedia/platform/osx/avf/AVFAudioSpectrumUnit.h

Print this page
*** 47,11 ***
   *
   * callbackContext: user specified context pointer
   * timeStamp: the beginning time in seconds of the sample period (from beginning of stream)
   * duration: the length of time in seconds of the sample period
   */
! typedef void (*AVFSpectrumUnitCallbackProc)(void *callbackContext, double duration);
  
  class AVFAudioSpectrumUnit : public CAudioSpectrum {
  public:
      AVFAudioSpectrumUnit();
      virtual ~AVFAudioSpectrumUnit();
--- 47,12 ---
   *
   * callbackContext: user specified context pointer
   * timeStamp: the beginning time in seconds of the sample period (from beginning of stream)
   * duration: the length of time in seconds of the sample period
   */
! typedef void (*AVFSpectrumUnitCallbackProc)(void *callbackContext, double duration,
+                                             double timestamp);
  
  class AVFAudioSpectrumUnit : public CAudioSpectrum {
  public:
      AVFAudioSpectrumUnit();
      virtual ~AVFAudioSpectrumUnit();

*** 78,10 ***
--- 79,11 ---
  
      void SetSampleRate(UInt32 rate);
      void SetChannels(UInt32 count);
      void SetMaxFrames(UInt32 maxFrames);
      void SetSpectrumCallbackProc(AVFSpectrumUnitCallbackProc proc, void *context);
+     void SetFirstBufferDelivered(bool isFirstBufferDelivered);
  
  private:
      AVFSpectrumUnitCallbackProc mSpectrumCallbackProc;
      void *mSpectrumCallbackContext;
      bool mEnabled;

*** 100,10 ***
--- 102,11 ---
      UInt32 mChannels;
      UInt32 mMaxFrames;
      UInt32 mSamplesPerInterval;
  
      bool mRebuildCrunch;
+     bool mFirstBufferDelivered;
  
      // GStreamer
      GstElement *mSpectrumElement;
      GstSpectrum *mSpectrum;
  
< prev index next >