sbBaseMediacoreMultibandEqualizer Class Reference

#include <sbBaseMediacoreMultibandEqualizer.h>

Inheritance diagram for sbBaseMediacoreMultibandEqualizer:
[legend]
Collaboration diagram for sbBaseMediacoreMultibandEqualizer:
[legend]

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIMEDIACOREMULTIBANDEQUALIZER 
sbBaseMediacoreMultibandEqualizer ()
 
nsresult InitBaseMediacoreMultibandEqualizer ()
 
virtual nsresult OnInitBaseMediacoreMultibandEqualizer ()
 
virtual nsresult OnSetEqEnabled (PRBool aEqEnabled)
 
virtual nsresult OnGetBandCount (PRUint32 *aBandCount)
 
virtual nsresult OnGetBand (PRUint32 aBandIndex, sbIMediacoreEqualizerBand *aBand)
 
virtual nsresult OnSetBand (sbIMediacoreEqualizerBand *aBand)
 
- Public Member Functions inherited from sbIMediacoreMultibandEqualizer
sbIMediacoreEqualizerBand getBand (in unsigned long aBandIndex)
 Get a band. More...
 
void setBand (in sbIMediacoreEqualizerBand aBand)
 Set a band. More...
 

Static Public Attributes

static const nsEmbedString NO_PRESET = NS_LITERAL_STRING("")
 Value of currentPResetName if the equalizer is not set by a preset. This value is set as empty string (""). More...
 
static const PRUint32 EQUALIZER_BAND_COUNT_DEFAULT = 10
 Suggested default band count for the equalizer. This value is defined as 10. More...
 
static const PRUint32 EQUALIZER_BANDS_10 [10]
 Suggested bands for a 10 band equalizer. More...
 

Protected Types

typedef nsInterfaceHashtable
< nsUint32HashKey,
sbIMediacoreEqualizerBand
eqbands_t
 

Protected Member Functions

virtual ~sbBaseMediacoreMultibandEqualizer ()
 
nsresult EnsureBandIsCached (sbIMediacoreEqualizerBand *aBand)
 

Static Protected Member Functions

template<class T >
static NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArrayUint32Key(const PRUint32 &aKey
 

Protected Attributes

static T * aData
 
static T void * aArray
 
PRMonitor * mMonitor
 
PRPackedBool mEqEnabled
 
eqbands_t mBands
 

Additional Inherited Members

- Public Attributes inherited from sbIMediacoreMultibandEqualizer
attribute boolean eqEnabled
 Whether the EQ is enabled or not. More...
 
attribute nsISimpleEnumerator bands
 Enumerator containing all available bands. More...
 
readonly attribute unsigned long bandCount
 The number of bands available. More...
 
attribute AString currentPresetName
 The name of the current equalizer preset. More...
 

Detailed Description

Definition at line 52 of file sbBaseMediacoreMultibandEqualizer.h.

Member Typedef Documentation

typedef nsInterfaceHashtable<nsUint32HashKey, sbIMediacoreEqualizerBand> sbBaseMediacoreMultibandEqualizer::eqbands_t
protected

Definition at line 102 of file sbBaseMediacoreMultibandEqualizer.h.

Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_SBIMEDIACOREMULTIBANDEQUALIZER sbBaseMediacoreMultibandEqualizer::sbBaseMediacoreMultibandEqualizer ( )
sbBaseMediacoreMultibandEqualizer::~sbBaseMediacoreMultibandEqualizer ( )
protectedvirtual

Definition at line 130 of file sbBaseMediacoreMultibandEqualizer.cpp.

Member Function Documentation

nsresult sbBaseMediacoreMultibandEqualizer::EnsureBandIsCached ( sbIMediacoreEqualizerBand aBand)
protected

Definition at line 144 of file sbBaseMediacoreMultibandEqualizer.cpp.

nsresult sbBaseMediacoreMultibandEqualizer::InitBaseMediacoreMultibandEqualizer ( )

Definition at line 183 of file sbBaseMediacoreMultibandEqualizer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T >
static sbBaseMediacoreMultibandEqualizer::NS_HIDDEN_ ( PLDHashOperator  ) const
staticprotected
nsresult sbBaseMediacoreMultibandEqualizer::OnGetBand ( PRUint32  aBandIndex,
sbIMediacoreEqualizerBand aBand 
)
virtual

Reimplemented in sbGStreamerMediacore, and sbMediacoreManager.

Definition at line 252 of file sbBaseMediacoreMultibandEqualizer.cpp.

nsresult sbBaseMediacoreMultibandEqualizer::OnGetBandCount ( PRUint32 *  aBandCount)
virtual

Reimplemented in sbGStreamerMediacore, and sbMediacoreManager.

Definition at line 241 of file sbBaseMediacoreMultibandEqualizer.cpp.

nsresult sbBaseMediacoreMultibandEqualizer::OnInitBaseMediacoreMultibandEqualizer ( )
virtual

Reimplemented in sbGStreamerMediacore, and sbMediacoreManager.

Definition at line 219 of file sbBaseMediacoreMultibandEqualizer.cpp.

Here is the caller graph for this function:

nsresult sbBaseMediacoreMultibandEqualizer::OnSetBand ( sbIMediacoreEqualizerBand aBand)
virtual

Reimplemented in sbGStreamerMediacore, and sbMediacoreManager.

Definition at line 265 of file sbBaseMediacoreMultibandEqualizer.cpp.

nsresult sbBaseMediacoreMultibandEqualizer::OnSetEqEnabled ( PRBool  aEqEnabled)
virtual

Reimplemented in sbGStreamerMediacore, and sbMediacoreManager.

Definition at line 230 of file sbBaseMediacoreMultibandEqualizer.cpp.

Member Data Documentation

T void* sbBaseMediacoreMultibandEqualizer::aArray
protected

Definition at line 94 of file sbBaseMediacoreMultibandEqualizer.h.

T* sbBaseMediacoreMultibandEqualizer::aData
protected

Definition at line 94 of file sbBaseMediacoreMultibandEqualizer.h.

const PRUint32 sbBaseMediacoreMultibandEqualizer::EQUALIZER_BAND_COUNT_DEFAULT = 10
static

Suggested default band count for the equalizer. This value is defined as 10.

Definition at line 71 of file sbBaseMediacoreMultibandEqualizer.h.

const PRUint32 sbBaseMediacoreMultibandEqualizer::EQUALIZER_BANDS_10
static
Initial value:
=
{32, 64, 125, 250, 500, 1000, 2000, 4000, 8000, 16000}

Suggested bands for a 10 band equalizer.

Definition at line 75 of file sbBaseMediacoreMultibandEqualizer.h.

eqbands_t sbBaseMediacoreMultibandEqualizer::mBands
protected

Definition at line 103 of file sbBaseMediacoreMultibandEqualizer.h.

PRPackedBool sbBaseMediacoreMultibandEqualizer::mEqEnabled
protected

Definition at line 100 of file sbBaseMediacoreMultibandEqualizer.h.

PRMonitor* sbBaseMediacoreMultibandEqualizer::mMonitor
protected

Definition at line 99 of file sbBaseMediacoreMultibandEqualizer.h.

const nsEmbedString sbBaseMediacoreMultibandEqualizer::NO_PRESET = NS_LITERAL_STRING("")
static

Value of currentPResetName if the equalizer is not set by a preset. This value is set as empty string ("").

Definition at line 66 of file sbBaseMediacoreMultibandEqualizer.h.


The documentation for this class was generated from the following files: