Gets the band that has the most effect on the given frequency. DimEQAsEQlib DimbandAsShort DimfreqasInt freq = 1000 EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
band = EQ.GetBand(freq)
EndIf
GetBandFreqRange (bandAsShort) AsInt()
Gets the frequency range of the given frequency band. DimEQAsEQlib EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
DimBandFreqRange() AsInt BandFreqRange=EQ.GetBandFreqRange Fori = 0ToBandFreqRange.Length-1 Log(BandFreqRange(i))
Next EndIf
GetBandLevel (bandAsShort) AsShort
Gets the Level set for the given Equalizer band. DimEQAsEQlib DimLevelAsShort EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
Level = EQ.GetBandLevel(band)
EndIf
GetBandLevelRangeAsShort()
Gets the level range for use by setBandLevel(short band, short level). DimEQAsEQlib EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
DimFRange() AsShort FRange=EQ.GetBandLevelRange Fori = 0ToFRange.Length-1 Log(FRange(i))
Next EndIf
GetCenterFreq (bandAsShort) AsInt
Gets the center frequency of the given band. DimEQAsEQlib DimFreqASInt EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
Freq = EQ.GetCenterFreq(band)
EndIf
GetCurrentPresetAsShort
Gets current preset. DimEQAsEQlib EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
EQ.GetCurrentPreset EndIf
GetEnabledAsBoolean
Gets the Enabled status of the Audio effect engine.
GetNumberOfBandsAsShort
Gets the number of frequency bands supported by the Equalizer engine. DimEQASSLEqualizer EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
NoBands=EQ.GetNumberOfBands Endif
GetNumberOfPresetsAsShort
Gets the total number of presets the Equalizer supports. DimEQAsEQlib EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
NoPres=EQ.GetNumberOfPresets Fori = 0ToNoPres-1 Log(EQ.GetPresetName(i))
Next Endif
GetPresetName (presetAsShort) AsString
Gets the preset name based on the index. DimEQAsEQlib EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
NoPres=EQ.GetNumberOfPresets Fori = 0ToNoPres-1 Log(EQ.GetPresetName(i))
Next Endif
GetPropertiesAsString
Gets the Equalizer properties. DimEQAsEQlib EQ.Initialize EQ.Enable(True)
EqSett= EQ.GetProperties EQ.SetProperties(EqSett)
HasControlAsBoolean
Checks if this AudioEffect object is controlling the effect engine
InitializeAsBoolean
Checks whether the Equalizer is available and Initializes the object, only for all output and not for specific media players. For backwards compatibility, the library will not throw an exception on failure to initialize the Equalizer, but will return true or false and set the IsInitialized flag appropriately if it fails for any reason. check either of these before running the other methods as if the equalizer is not initialized, you will get a runtime error. DimEQAsEQlib EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
NoPres=EQ.GetNumberOfPresets Fori = 0ToNoPres-1 Log(EQ.GetPresetName(i))
Next Endif
Checks whether the Equalizer is available and Initializes the object. For backwards compatibility, the library will not throw an exception on failure to initialize the Equalizer, but will return true or false and set the IsInitialized flag appropriately if it fails for any reason. check either of these before running the other methods as if the equalizer is not initialized, you will get a runtime error. DimEQAsEQlib DimRAsReflector R.Target=MP R.Target=R.GetField("mp")
DimAudioSessionIDAsInt = R.RunMethod("getAudioSessionId")
EQ.Initialize(0,AudioSessionID)
IfEQ.IsInitializedThen EQ.Enable(True)
NoPres=EQ.GetNumberOfPresets Fori = 0ToNoPres-1 Log(EQ.GetPresetName(i))
Next Endif
priority level - requested by the application for controlling the Equalizer engine. As the same engine can be shared by several applications, this parameter indicates how much the requesting application needs control of effect parameters. The normal priority is 0, above normal is a positive number, below normal a negative number.
audioSession - system wide unique audio session identifier. The Equalizer will be attached to the MediaPlayer or AudioTrack in the same audio session.
IsAvailableAsBoolean
Returns the availability of the Equalizer object, it must be available for the devices API level (9 or later)
IsInitializedAsBoolean
Returns the status of the Equalizer object, it must be available for the devices API level and initialized DimEQAsEQlib EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
'Setup EQ Parameters Endif
Release
Releases the native AudioEffect resources. It is a good practice to release the effect engine when not in use as control can be returned to other applications or the native resources released.
SetBandLevel (bandAsShort, levelAsShort)
Sets the given Equalizer band to the given Level. DimEQAsEQlib Dimband,levelAsShort EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
EQ.SetBandLevel(band,level)
EndIf
SetProperties (settingsStrAsString)
Sets the Equalizer properties. DimEQAsEQlib EQ.Initialize EQ.Enable(True)
EqSett= EQ.GetProperties EQ.SetProperties(EqSett)
UsePreset (presetAsShort)
Sets the Equalizer according to the given preset. DimEQAsEQlib EQ.Initialize IfEQ.IsInitializedThen EQ.Enable(True)
EQ.UsePreset(preset)
EndIf Top