|
Audio device types.
| VLC_PUBLIC_API int libvlc_audio_get_channel | ( | libvlc_instance_t * | , | |
| libvlc_exception_t * | ||||
| ) |
Get current audio channel.
| p_instance | vlc instance | |
| p_e | an initialized exception pointer |
References GetAOut(), var_GetInteger, and vlc_object_release.
| VLC_PUBLIC_API int libvlc_audio_get_mute | ( | libvlc_instance_t * | ) |
Get current mute status.
| p_instance | libvlc instance |
References libvlc_audio_get_volume().
Referenced by libvlc_audio_set_mute().
| VLC_PUBLIC_API int libvlc_audio_get_track | ( | libvlc_media_player_t * | , | |
| libvlc_exception_t * | ||||
| ) |
Get current audio track.
| p_mi | media player | |
| p_e | an initialized exception pointer |
References i, vlc_list_t::i_count, vlc_value_t::i_int, libvlc_exception_raise(), libvlc_get_input_thread(), libvlc_printerr(), vlc_value_t::p_list, vlc_list_t::p_values, var_Change, var_FreeList(), var_Get, vlc_object_release, and VLC_VAR_GETCHOICES.
| VLC_PUBLIC_API int libvlc_audio_get_track_count | ( | libvlc_media_player_t * | , | |
| libvlc_exception_t * | ||||
| ) |
Get number of available audio tracks.
| p_mi | media player | |
| p_e | an initialized exception |
References libvlc_get_input_thread(), var_CountChoices, and vlc_object_release.
| VLC_PUBLIC_API libvlc_track_description_t* libvlc_audio_get_track_description | ( | libvlc_media_player_t * | , | |
| libvlc_exception_t * | ||||
| ) |
Get the description of available audio tracks.
| p_mi | media player | |
| p_e | an initialized exception |
References libvlc_get_track_description().
| VLC_PUBLIC_API int libvlc_audio_get_volume | ( | libvlc_instance_t * | ) |
Get current audio level.
| p_instance | libvlc instance | |
| p_e | an initialized exception pointer |
References AOUT_VOLUME_MAX, aout_VolumeGet, and libvlc_instance_t::p_libvlc_int.
Referenced by libvlc_audio_get_mute(), and mediacontrol_sound_get_volume().
| VLC_PUBLIC_API int libvlc_audio_output_device_count | ( | libvlc_instance_t * | , | |
| const char * | ||||
| ) |
Get count of devices for audio output, these devices are hardware oriented like analor or digital output of sound card.
| p_instance | libvlc instance | |
| psz_audio_output | - name of audio output, |
References asprintf(), config_FindConfig(), module_config_t::i_list, libvlc_instance_t::p_libvlc_int, module_config_t::pf_update_list, module_value_t::psz, vlc_value_t::psz_string, strdup(), module_config_t::value, and VLC_OBJECT.
| VLC_PUBLIC_API char* libvlc_audio_output_device_id | ( | libvlc_instance_t * | , | |
| const char * | , | |||
| int | ||||
| ) |
Get id name of device.
| p_instance | libvlc instance | |
| psz_audio_output | - name of audio output, |
| i_device | device index |
References asprintf(), config_FindConfig(), module_config_t::i_list, libvlc_instance_t::p_libvlc_int, module_config_t::pf_update_list, module_config_t::ppsz_list, module_value_t::psz, vlc_value_t::psz_string, strdup(), module_config_t::value, and VLC_OBJECT.
| VLC_PUBLIC_API char* libvlc_audio_output_device_longname | ( | libvlc_instance_t * | , | |
| const char * | , | |||
| int | ||||
| ) |
Get long name of device, if not available short name given.
| p_instance | libvlc instance | |
| psz_audio_output | - name of audio output, |
| i_device | device index |
References asprintf(), config_FindConfig(), module_config_t::i_list, libvlc_instance_t::p_libvlc_int, module_config_t::pf_update_list, module_config_t::ppsz_list, module_config_t::ppsz_list_text, module_value_t::psz, vlc_value_t::psz_string, strdup(), module_config_t::value, and VLC_OBJECT.
| VLC_PUBLIC_API void libvlc_audio_output_device_set | ( | libvlc_instance_t * | , | |
| const char * | , | |||
| const char * | ||||
| ) |
Set device for using.
| p_instance | libvlc instance | |
| psz_audio_output | - name of audio output, |
| psz_device_id | device |
References asprintf(), config_PutPsz, and libvlc_instance_t::p_libvlc_int.
| VLC_PUBLIC_API int libvlc_audio_output_get_device_type | ( | libvlc_instance_t * | , | |
| libvlc_exception_t * | ||||
| ) |
Get current audio device type.
Device type describes something like character of output sound - stereo sound, 2.1, 5.1 etc
| p_instance | vlc instance | |
| p_e | an initialized exception pointer |
References GetAOut(), libvlc_AudioOutputDevice_Error, var_GetInteger, and vlc_object_release.
| VLC_PUBLIC_API libvlc_audio_output_t* libvlc_audio_output_list_get | ( | libvlc_instance_t * | , | |
| libvlc_exception_t * | ||||
| ) |
Get the list of available audio outputs.
| p_instance | libvlc instance | |
| p_e | an initialized exception pointer |
References i, libvlc_audio_output_list_release(), libvlc_exception_raise(), libvlc_printerr(), module_get_name(), module_get_object(), module_list_free(), module_list_get(), module_provides(), libvlc_audio_output_t::psz_name, strdup(), and VLC_UNUSED.
| VLC_PUBLIC_API void libvlc_audio_output_list_release | ( | libvlc_audio_output_t * | ) |
Free the list of available audio outputs.
| p_list | list with audio outputs for release |
References libvlc_audio_output_t::p_next, libvlc_audio_output_t::psz_description, and libvlc_audio_output_t::psz_name.
Referenced by libvlc_audio_output_list_get().
| VLC_PUBLIC_API int libvlc_audio_output_set | ( | libvlc_instance_t * | , | |
| const char * | ||||
| ) |
Set the audio output.
Change will be applied after stop and play.
| p_instance | libvlc instance | |
| psz_name | name of audio output, use psz_name of |
References config_PutPsz, module_exists(), and libvlc_instance_t::p_libvlc_int.
| VLC_PUBLIC_API void libvlc_audio_output_set_device_type | ( | libvlc_instance_t * | , | |
| int | , | |||
| libvlc_exception_t * | ||||
| ) |
Set current audio device type.
| p_instance | vlc instance | |
| device_type | the audio device type, according to |
| p_e | an initialized exception pointer |
References GetAOut(), libvlc_exception_raise(), libvlc_printerr(), var_SetInteger, and vlc_object_release.
| VLC_PUBLIC_API void libvlc_audio_set_channel | ( | libvlc_instance_t * | , | |
| int | , | |||
| libvlc_exception_t * | ||||
| ) |
Set current audio channel.
| p_instance | vlc instance | |
| channel | the audio channel, |
| p_e | an initialized exception pointer |
References GetAOut(), libvlc_exception_raise(), libvlc_printerr(), var_SetInteger, and vlc_object_release.
| VLC_PUBLIC_API void libvlc_audio_set_mute | ( | libvlc_instance_t * | , | |
| int | ||||
| ) |
Set mute status.
| p_instance | libvlc instance | |
| status | If status is true then mute, otherwise unmute |
References aout_ToggleMute, libvlc_audio_get_mute(), and libvlc_instance_t::p_libvlc_int.
| VLC_PUBLIC_API void libvlc_audio_set_track | ( | libvlc_media_player_t * | , | |
| int | , | |||
| libvlc_exception_t * | ||||
| ) |
Set current audio track.
| p_mi | media player | |
| i_track | the track (int) | |
| p_e | an initialized exception pointer |
References vlc_list_t::i_count, libvlc_exception_raise(), libvlc_get_input_thread(), libvlc_printerr(), vlc_value_t::p_list, vlc_list_t::p_values, var_Change, var_FreeList(), var_Set, vlc_object_release, and VLC_VAR_GETCHOICES.
| VLC_PUBLIC_API void libvlc_audio_set_volume | ( | libvlc_instance_t * | , | |
| int | , | |||
| libvlc_exception_t * | ||||
| ) |
Set current audio level.
| p_instance | libvlc instance | |
| i_volume | the volume (int) | |
| p_e | an initialized exception pointer |
References AOUT_VOLUME_MAX, aout_VolumeSet, libvlc_exception_raise(), libvlc_printerr(), and libvlc_instance_t::p_libvlc_int.
Referenced by mediacontrol_sound_set_volume().
| VLC_PUBLIC_API void libvlc_audio_toggle_mute | ( | libvlc_instance_t * | ) |
Toggle mute status.
| p_instance | libvlc instance |
References aout_ToggleMute, and libvlc_instance_t::p_libvlc_int.
1.5.6