
Defines | |
| #define | findAout(o) findAout(VLC_OBJECT(o)) |
Functions | |
| static audio_output_t * | findAout (vlc_object_t *obj) |
| static void | prepareVolume (vlc_object_t *obj, audio_output_t **aoutp, audio_volume_t *volp, bool *mutep) |
| Start a volume change transaction. | |
| static int | commitVolume (vlc_object_t *obj, audio_output_t *aout, audio_volume_t volume, bool mute) |
| Commit a volume change transaction. | |
| static void | cancelVolume (vlc_object_t *obj, audio_output_t *aout) |
| Cancel a volume change transaction. | |
| audio_volume_t | aout_VolumeGet (vlc_object_t *obj) |
| Gets the volume of the output device (independent of mute). | |
| int | aout_VolumeSet (vlc_object_t *obj, audio_volume_t volume) |
| Sets the volume of the output device. | |
| int | aout_VolumeUp (vlc_object_t *obj, int value, audio_volume_t *volp) |
| Raises the volume. | |
| int | aout_ToggleMute (vlc_object_t *obj, audio_volume_t *volp) |
| Toggles the mute state. | |
| bool | aout_IsMuted (vlc_object_t *obj) |
| Gets the output mute status. | |
| int | aout_SetMute (vlc_object_t *obj, audio_volume_t *volp, bool mute) |
| Sets mute status. | |
| int | aout_ChannelsRestart (vlc_object_t *p_this, const char *psz_variable, vlc_value_t oldval, vlc_value_t newval, void *p_data) |
| void | aout_EnableFilter (vlc_object_t *p_this, const char *psz_name, bool b_add) |
| Enable or disable an audio filter. | |
| #define findAout | ( | o | ) | findAout(VLC_OBJECT(o)) |
Referenced by aout_EnableFilter(), and prepareVolume().
| int aout_ChannelsRestart | ( | vlc_object_t * | p_this, | |
| const char * | psz_variable, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) |
References aout_RequestRestart(), and var_Destroy.
Referenced by aout_OutputNew().
| void aout_EnableFilter | ( | vlc_object_t * | p_this, | |
| const char * | psz_name, | |||
| bool | b_add | |||
| ) |
Enable or disable an audio filter.
| p_this | a vlc object | |
| psz_name | name of the filter | |
| b_add | are we adding or removing the filter ? |
References aout_ChangeFilterString(), aout_InputRequestRestart(), findAout, VLC_OBJECT, and vlc_object_release.
| bool aout_IsMuted | ( | vlc_object_t * | obj | ) |
Gets the output mute status.
References cancelVolume(), and prepareVolume().
| int aout_SetMute | ( | vlc_object_t * | obj, | |
| audio_volume_t * | volp, | |||
| bool | mute | |||
| ) |
Sets mute status.
References commitVolume(), and prepareVolume().
| int aout_ToggleMute | ( | vlc_object_t * | obj, | |
| audio_volume_t * | volp | |||
| ) |
Toggles the mute state.
References commitVolume(), and prepareVolume().
| audio_volume_t aout_VolumeGet | ( | vlc_object_t * | obj | ) |
Gets the volume of the output device (independent of mute).
References cancelVolume(), and prepareVolume().
| int aout_VolumeSet | ( | vlc_object_t * | obj, | |
| audio_volume_t | volume | |||
| ) |
Sets the volume of the output device.
The mute status is not changed.
References commitVolume(), and prepareVolume().
| int aout_VolumeUp | ( | vlc_object_t * | obj, | |
| int | value, | |||
| audio_volume_t * | volp | |||
| ) |
Raises the volume.
| value | how much to increase (> 0) or decrease (< 0) the volume | |
| volp | if non-NULL, will contain contain the resulting volume |
References AOUT_VOLUME_MAX, commitVolume(), prepareVolume(), and var_InheritInteger.
| static void cancelVolume | ( | vlc_object_t * | obj, | |
| audio_output_t * | aout | |||
| ) | [static] |
Cancel a volume change transaction.
References aout_unlock_volume(), and vlc_object_release.
Referenced by aout_IsMuted(), and aout_VolumeGet().
| static int commitVolume | ( | vlc_object_t * | obj, | |
| audio_output_t * | aout, | |||
| audio_volume_t | volume, | |||
| bool | mute | |||
| ) | [static] |
Commit a volume change transaction.
References aout_lock(), aout_owner(), aout_unlock(), aout_unlock_volume(), AOUT_VOLUME_DEFAULT, config_PutInt, aout_owner_t::module, audio_output::pf_volume_set, var_InheritBool, var_SetBool, var_SetInteger, var_TriggerCallback, and vlc_object_release.
Referenced by aout_SetMute(), aout_ToggleMute(), aout_VolumeSet(), and aout_VolumeUp().
| static audio_output_t* findAout | ( | vlc_object_t * | obj | ) | [static] |
References input_GetAout(), unlikely, var_GetAddress, and vlc_object_release.
| static void prepareVolume | ( | vlc_object_t * | obj, | |
| audio_output_t ** | aoutp, | |||
| audio_volume_t * | volp, | |||
| bool * | mutep | |||
| ) | [static] |
Start a volume change transaction.
References aout_lock_volume(), findAout, var_InheritBool, var_InheritInteger, and VLC_OBJECT.
Referenced by aout_IsMuted(), aout_SetMute(), aout_ToggleMute(), aout_VolumeGet(), aout_VolumeSet(), and aout_VolumeUp().
1.7.1