|
Tizen Native API
5.0
|
The Audio Effect API provides functions to control the audio effect.
#include <player.h>
The Audio effect API allows you to apply effects to the player:
Functions | |
| int | player_audio_effect_get_equalizer_bands_count (player_h player, int *count) |
| Gets the number of equalizer bands. | |
| int | player_audio_effect_set_equalizer_band_level (player_h player, int index, int level) |
| Sets the gain set for the given equalizer band. | |
| int | player_audio_effect_get_equalizer_band_level (player_h player, int index, int *level) |
| Gets the gain set for the given equalizer band. | |
| int | player_audio_effect_set_equalizer_all_bands (player_h player, int *band_levels, int length) |
| Sets all bands of the equalizer. | |
| int | player_audio_effect_get_equalizer_level_range (player_h player, int *min, int *max) |
| Gets the valid band level range of the equalizer. | |
| int | player_audio_effect_get_equalizer_band_frequency (player_h player, int index, int *frequency) |
| Gets the band frequency of the equalizer. | |
| int | player_audio_effect_get_equalizer_band_frequency_range (player_h player, int index, int *range) |
| Gets the band frequency range of the equalizer. | |
| int | player_audio_effect_equalizer_clear (player_h player) |
| Clears the equalizer effect. | |
| int | player_audio_effect_equalizer_is_available (player_h player, bool *available) |
| Checks whether the custom equalizer effect is available. | |
| int player_audio_effect_equalizer_clear | ( | player_h | player | ) |
Clears the equalizer effect.
| [in] | player | The handle to the media player |
0 on success, otherwise a negative error value | PLAYER_ERROR_NONE | Successful |
| PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
| PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
| int player_audio_effect_equalizer_is_available | ( | player_h | player, |
| bool * | available | ||
| ) |
Checks whether the custom equalizer effect is available.
| [in] | player | The handle to the media player |
| [out] | available | If true the specified audio effect is available, otherwise false |
0 on success, otherwise a negative error value | PLAYER_ERROR_NONE | Successful |
| PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
| int player_audio_effect_get_equalizer_band_frequency | ( | player_h | player, |
| int | index, | ||
| int * | frequency | ||
| ) |
Gets the band frequency of the equalizer.
| [in] | player | The handle to the media player |
| [in] | index | The index of the requested equalizer band |
| [out] | frequency | The frequency of the given band [dB] |
0 on success, otherwise a negative error value | PLAYER_ERROR_NONE | Successful |
| PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
| int player_audio_effect_get_equalizer_band_frequency_range | ( | player_h | player, |
| int | index, | ||
| int * | range | ||
| ) |
Gets the band frequency range of the equalizer.
| [in] | player | The handle to the media player |
| [in] | index | The index of the requested equalizer band |
| [out] | range | The frequency range of the given band [dB] |
0 on success, otherwise a negative error value | PLAYER_ERROR_NONE | Successful |
| PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
| int player_audio_effect_get_equalizer_band_level | ( | player_h | player, |
| int | index, | ||
| int * | level | ||
| ) |
Gets the gain set for the given equalizer band.
| [in] | player | The handle to the media player |
| [in] | index | The index of the requested equalizer band |
| [out] | level | The gain in decibel of the given band [dB] |
0 on success, otherwise a negative error value | PLAYER_ERROR_NONE | Successful |
| PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
| int player_audio_effect_get_equalizer_bands_count | ( | player_h | player, |
| int * | count | ||
| ) |
Gets the number of equalizer bands.
| [in] | player | The handle to the media player |
| [out] | count | The number of equalizer bands |
0 on success, otherwise a negative error value | PLAYER_ERROR_NONE | Successful |
| PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
| int player_audio_effect_get_equalizer_level_range | ( | player_h | player, |
| int * | min, | ||
| int * | max | ||
| ) |
Gets the valid band level range of the equalizer.
| [in] | player | The handle to the media player |
| [out] | min | The minimum value to be set [dB] |
| [out] | max | The maximum value to be set [dB] |
0 on success, otherwise a negative error value | PLAYER_ERROR_NONE | Successful |
| PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
| PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
| int player_audio_effect_set_equalizer_all_bands | ( | player_h | player, |
| int * | band_levels, | ||
| int | length | ||
| ) |
Sets all bands of the equalizer.
| [in] | player | The handle to the media player |
| [in] | band_levels | The list of band levels to be set |
| [in] | length | The length of the band level |
0 on success, otherwise a negative error value | PLAYER_ERROR_NONE | Successful |
| PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
| PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
| int player_audio_effect_set_equalizer_band_level | ( | player_h | player, |
| int | index, | ||
| int | level | ||
| ) |
Sets the gain set for the given equalizer band.
| [in] | player | The handle to the media player |
| [in] | index | The index of the equalizer band to be set |
| [in] | level | The new gain in decibel that is set to the given band [dB] |
0 on success, otherwise a negative error value | PLAYER_ERROR_NONE | Successful |
| PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
| PLAYER_ERROR_INVALID_OPERATION | Invalid operation |