Equalizer - Configure and customize a player's audio by obtaining their session id

Equalizer
Configure and customize a player's audio by obtaining their session id.
I have only tested it with MediaPlayer, specifically with the JoeDevPlayer extension.

SetAudioSessionId

Sets the audio session ID (There is a property block in the JoeDevPlayer extension that gives you the audio session (In version 1.1.0).


SetupEqualizer

Sets the equalizer for the Player after you have set SetAudioSessionId.

component_method (55)


SetBandLevel

Sets the band level for a given frequency.

  • band: Frequency band.
  • level: Band level. (The ranges you can use are given by the GetBandLevelRange function).

GetBandLevelRange

Gets the band level range.

component_method (56)

  • A list with the minimum and maximum levels of the band.

GetNumberOfBands

Gets the number of frequency bands. (In MediaPlayer there are 5).

component_method (57)


GetCenterFreq

Gets the center frequency of a given band.

  • band: Frequency band.

These are the 5 options that the help block has:

helpers_dropdown (2)

helpers_dropdown (3)

helpers_dropdown (4)

helpers_dropdown (5)

helpers_dropdown (6)


Extension: v1.0
joejsanz.joedevequalizer.aix (6.3 KB)

minSdk: 21
JDK: 11

Created with Fast. v5.7.1
fast-cli


Thanks.

8 Likes

Hi Joe.
I'm enjoying your equalizer, equalizerControls, and player extensions, and I'm developing an app for personal use.

  1. I'd like to make a donation as a thank you. Let me know how. I really want to do it.

  2. I can't get the settings to be taken from code when the app opens or according to custom events (buttonx.click!)
    I'd like the audio to start immediately with the specific settings (presets) when I enter the app or click the buttons:
    JoeDevEqualizer.SetBandaLevel, level 1500 for all bands.
    In the equalizer dialog, both the labels and thumbs are displayed correctly, but the equalizer pitch (human ear) remains at 0 on all bands.
    Can you tell me where I'm going wrong?
    I'm attaching the test file.
    Thanks

    EqualizerControls.aia (1.3 MB)

1 Like

Thank you very much.

This is my PayPal:


There is a way, I'll share screenshots of the only things I added and changed in the project.


And I'm leaving you the .aia file so you can verify it.

EqualizerControls2.aia (1.3 MB)


I also changed the name of the EqualizerControls package due to an error I was getting when trying to update the equalizer extension. It still works the same. I've included the extension here; I'll update the post containing it later.

joejsanz.joedeveqcontrols.aix (9.8 KB)

1 Like
  1. Donation made. Thank you.
  2. I'll try what you wrote tonight! Thanks
1 Like

Thank you henry