import"SoundSettingsPlugin.idl";
This is a class which implements global SoundSettings.
Boolean SoundSettings.enableAutoVolumeLevel |
( |
[in] Boolean |
enable_auto_volume_level | ) |
|
Enable or disable auto volume level property. Auto volume level property is used to equalize sound level when displayed program is changed.
- Parameters
-
enable_auto_volume_level | True four enabling auto volume level, false for disabling auto volume level. |
- Returns
- true if function call is successfull, false otherwise.
Integer SoundSettings.getBalanceLevel |
( |
| ) |
|
Get balance level.
- Returns
- Current balance level.
Integer SoundSettings.getBassGainLevel |
( |
| ) |
|
Get bass gain level.
- Returns
- Current bass gain level.
enumerations SoundSettings.getCurrentAudioOutputDevice |
( |
| ) |
|
Gets audio output device.
- Returns
- Current audio output device.
enumerations SoundSettings.getDigitalOut |
( |
| ) |
|
Get digital audio output type.
- Returns
- Current digital audio output type.
enumerations SoundSettings.getEqualizerMode |
( |
| ) |
|
Get preferred equalizer mode.
- Returns
- Equalizer mode.
Integer SoundSettings.getEQUserFrequency |
( |
[in] enumerations |
band_index | ) |
|
Get user mode equalizer band value. Throws runtime error if band index is invalid or current mode is not user.
- Parameters
-
band_index | Which equalizer band. |
- Returns
- Equalizer band value.
Boolean SoundSettings.getHardOfHearing |
( |
| ) |
|
Get hard of hearing status.
- Returns
- Whether hard of hearing is enabled or not.
enumerations SoundSettings.getHeadphoneOutput |
( |
| ) |
|
Integer SoundSettings.getHeadphoneVolumeLevel |
( |
| ) |
|
Get headphone volume level.
- Returns
- Current headphone volume level.
Integer SoundSettings.getMaxVolumeLevel |
( |
| ) |
|
Get maximum volume level.
- Returns
- Maximum volume level.
Integer SoundSettings.getMinVolumeLevel |
( |
| ) |
|
Get minimum volume level.
- Returns
- Minimum volume level.
enumerations SoundSettings.getSoundMode |
( |
| ) |
|
Get current sound mode.
- Returns
- Current sound mode.
Integer SoundSettings.getVolumeLevel |
( |
| ) |
|
Get current volume level.
- Returns
- Current volume level.
Boolean SoundSettings.isAutoVolumeLevelEnabled |
( |
| ) |
|
Get auto volume level state.
- Returns
- true if auto volume level enabled, false otherwise
Boolean SoundSettings.setBalanceLevel |
( |
[in] Integer |
balance_level | ) |
|
Set balance level. Invalid type of parameter throws runtime error.
- Parameters
-
balance_level | New balance level. -50 <= balance_level <= 50 |
- Returns
- true if function call is successful, false otherwise
Boolean SoundSettings.setBassGainLevel |
( |
[in] Integer |
bass_gain_level | ) |
|
Set bass gain level. Invalid type of parameter throws runtime error.
- Parameters
-
bass_gain_level | New bass gain level. -6 <= bass_gain_level <= 6 |
- Returns
- true if function call is successful, false otherwise
Boolean SoundSettings.setDigitalOut |
( |
[in] enumerations |
output_type | ) |
|
Set digital audio output type. Invalid type of parameter throws runtime error.
- Parameters
-
output_type | Digital audio output type. |
- Returns
- true if function call is successful, false otherwise
Boolean SoundSettings.setEqualizerMode |
( |
[in] enumerations |
equalizer_mode | ) |
|
Set preferred equalizer mode. Invalid type of parameter throws runtime error.
- Parameters
-
equalizer_mode | Equalizer mode to set. |
- Returns
- true if function call is successful, false otherwise
Boolean SoundSettings.setEQUserFrequency |
( |
[in] enumerations |
band_index, |
|
|
[in] Integer |
band_value |
|
) |
| |
Set user mode equalizer band value. Equalizer mode should be user. Invalid type of parameter throws runtime error.
- Parameters
-
band_index | Which equalizer band. |
band_value | Equalizer band value. -12 <= band_value <= 12. |
- Returns
- true if function call is successful, false otherwise
Boolean SoundSettings.setHardOfHearing |
( |
[in] Boolean |
enable_hard_of_hearing | ) |
|
Set hard of hearing preference. Invalid type of parameter throws runtime error.
- Parameters
-
enable_hard_of_hearing | Enable/disable hard of hearing. |
- Returns
- true if function call is successful, false otherwise
Boolean SoundSettings.setHeadphoneOutput |
( |
[in] enumerations |
output | ) |
|
Set headphone output as headphone or lineout. Invalid type of parameter throws runtime error.
- Parameters
-
output | Output to set (HeadPhone/DigitalLine). |
- Returns
- true if function call is successful, false otherwise
Boolean SoundSettings.setHeadphoneVolumeLevel |
( |
[in] Integer |
headphone_volume_level | ) |
|
Set headphone volume level. Headphone output should be SoundSettings.HeadPhone. Invalid type of parameter throws runtime error.
- Parameters
-
headphone_volume_level | New headphone volume level. 0 <= headphone_volume_level <= 100 |
- Returns
- true if function call is successful, false otherwise
Boolean SoundSettings.setSoundMode |
( |
[in] enumerations |
sound_mode | ) |
|
Set sound mode. Invalid type of parameter throws runtime error.
- Parameters
-
sound_mode | Sound mode to set. |
- Returns
- true if function call is successful, false otherwise
Boolean SoundSettings.setVolumeLevel |
( |
[in] Integer |
volume_level | ) |
|
Set volume level. If volume level is out of minimum/maximum range, volume is set to limits. Returns false for negative volume level. Invalid type of parameter throws runtime error.
- Parameters
-
volume_level | New volume level, as a percentage of the maximum volume. |
- Returns
- true if function call is successful, false otherwise
const Integer SoundSettings.DIGITAL_OUT_COMPRESSED = 1 |
Compressed audio output type
const Integer SoundSettings.DIGITAL_OUT_PCM = 0 |
const Integer SoundSettings.DigitalLine = 2 |
const Integer SoundSettings.EQ_10000HZ_BAND = 4 |
const Integer SoundSettings.EQ_120HZ_BAND = 0 |
const Integer SoundSettings.EQ_1500HZ_BAND = 2 |
const Integer SoundSettings.EQ_5000HZ_BAND = 3 |
const Integer SoundSettings.EQ_500HZ_BAND = 1 |
const Integer SoundSettings.EQ_MODE_CLASSIC = 4 |
const Integer SoundSettings.EQ_MODE_FLAT = 3 |
const Integer SoundSettings.EQ_MODE_MOVIE = 1 |
const Integer SoundSettings.EQ_MODE_MUSIC = 0 |
const Integer SoundSettings.EQ_MODE_SPEECH = 2 |
const Integer SoundSettings.EQ_MODE_USER = 5 |
const Integer SoundSettings.HeadPhone = 1 |
const Integer SoundSettings.SOUND_MODE_DUAL_I = 2 |
const Integer SoundSettings.SOUND_MODE_DUAL_II = 3 |
const Integer SoundSettings.SOUND_MODE_MONO = 0 |
const Integer SoundSettings.SOUND_MODE_MONO_LEFT = 4 |
const Integer SoundSettings.SOUND_MODE_MONO_RIGHT = 5 |
const Integer SoundSettings.SOUND_MODE_STEREO = 1 |
const Integer SoundSettings.TVSpeaker = 0 |
The documentation for this interface was generated from the following file: