GstPlayer: add equalizer support [API]
Submitted by Sachin Kumar Chauhan
Link to original bug (#771761)
Description
Hi,
Below is the draft of proposed equalizer api's to be added in GstPlayer.
I would like to open a discussion to finalize this. Please provide inputs on this.
typedef enum
{
GST_PLAYER_EQUALIZER_NONE,
GST_PLAYER_EQUALIZER_3BANDS,
GST_PLAYER_EQUALIZER_10BANDS,
GST_PLAYER_EQUALIZER_NBANDS
} GstPlayerEqualizerType;
struct _GstPlayer
{
.
.
.
gboolean is_equalizer_enabled;
GstPlayerEqualizerType equalizer_type;
};
gboolean gst_player_is_equalizer_enabled( GstPlayer * player);
void gst_player_enable_equalizer (GstPlayer * player, GstPlayerEqualizerType type); // passing GST_PLAYER_EUQALIZER_NONE will remove existing equalizer element.
int gst_player_get_equalizer_band_count (GstPlayer * player);
void gst_player_set_equalizer_band_count ( GstPlayer * player, int band_count); //for nband equalizer. in case of 3 or 10 bands, function will ignore this call
double gst_player_get_band_value( GstPlayer * player, int band_num);
void gst_player_set_band_value( GstPlayer * player, int band_num, double value);
Thanks,
Sachin k Chauhan