|
VLC
2.1.0-git
|

Functions | |
| static void | aout_OutputAssertLocked (audio_output_t *aout) |
| static void | aout_Destructor (vlc_object_t *obj) |
| Destroys the audio output lock used (asynchronously) by interface functions. | |
| static int | var_Copy (vlc_object_t *src, const char *name, vlc_value_t prev, vlc_value_t value, void *data) |
| static void | aout_VolumeNotify (audio_output_t *aout, float volume) |
| Supply or update the current custom ("hardware") volume. | |
| static void | aout_MuteNotify (audio_output_t *aout, bool mute) |
| static void | aout_PolicyNotify (audio_output_t *aout, bool cork) |
| static void | aout_DeviceNotify (audio_output_t *aout, const char *id) |
| static void | aout_RestartNotify (audio_output_t *aout, unsigned mode) |
| static int | aout_GainNotify (audio_output_t *aout, float gain) |
| audio_output_t * | aout_New (((vlc_object_t *)(vlc_object_t *parent))) |
| Creates an audio output object and initializes an output module. | |
| void | aout_Destroy (audio_output_t *aout) |
| Deinitializes an audio output module and destroys an audio output object. | |
| int | aout_OutputNew (audio_output_t *aout, audio_sample_format_t *restrict fmt) |
| Starts an audio output stream. | |
| void | aout_OutputDelete (audio_output_t *aout) |
| Stops the audio output stream (undoes aout_OutputNew()). | |
| int | aout_OutputTimeGet (audio_output_t *aout, mtime_t *delay) |
| void | aout_OutputPlay (audio_output_t *aout, block_t *block) |
| Plays a decoded audio buffer. | |
| static void | PauseDefault (audio_output_t *aout, bool pause, mtime_t date) |
| void | aout_OutputPause (audio_output_t *aout, bool pause, mtime_t date) |
| Notifies the audio output (if any) of pause/resume events. | |
| void | aout_OutputFlush (audio_output_t *aout, bool wait) |
| Flushes or drains the audio output buffers. | |
| static int | aout_OutputVolumeSet (audio_output_t *aout, float vol) |
| static int | aout_OutputMuteSet (audio_output_t *aout, bool mute) |
| static int | aout_OutputDeviceSet (audio_output_t *aout, const char *id) |
| static int | aout_OutputDevicesEnum (audio_output_t *aout, char ***ids, char ***names) |
| void | aout_OutputLock (audio_output_t *aout) |
| static int | aout_OutputTryLock (audio_output_t *aout) |
| void | aout_OutputUnlock (audio_output_t *aout) |
| float | aout_VolumeGet (audio_output_t *aout) |
| Gets the volume of the audio output stream (independent of mute). | |
| int | aout_VolumeSet (audio_output_t *aout, float vol) |
| Sets the volume of the audio output stream. | |
| int | aout_MuteGet (audio_output_t *aout) |
| Gets the audio output stream mute flag. | |
| int | aout_MuteSet (audio_output_t *aout, bool mute) |
| Sets the audio output stream mute flag. | |
| char * | aout_DeviceGet (audio_output_t *aout) |
| Gets the currently selected device. | |
| int | aout_DeviceSet (audio_output_t *aout, const char *id) |
| Selects an audio output device. | |
| int | aout_DevicesList (audio_output_t *aout, char ***ids, char ***names) |
| Enumerates possible audio output devices. | |
Variables | |
| static const char | unset_str [1] = "" |
| void aout_Destroy | ( | audio_output_t * | aout | ) |
Deinitializes an audio output module and destroys an audio output object.
References aout_OutputLock(), aout_OutputUnlock(), aout_owner(), aout_owner_t::module, module_unneed, audio_output::mute_set, audio_output::p_parent, var_Copy(), var_DelCallback, var_SetFloat, vlc_object_release, and audio_output::volume_set.
Referenced by input_resource_PutAout(), input_resource_Release(), and input_resource_TerminateAout().
|
static |
Destroys the audio output lock used (asynchronously) by interface functions.
References aout_owner(), aout_owner_t::device, aout_owner_t::lock, aout_owner_t::req, unset_str, and vlc_mutex_destroy().
Referenced by aout_New().
| char* aout_DeviceGet | ( | audio_output_t * | aout | ) |
Gets the currently selected device.
References var_GetNonEmptyString.
|
static |
References var_SetString.
Referenced by aout_New().
| int aout_DeviceSet | ( | audio_output_t * | aout, |
| const char * | id | ||
| ) |
Selects an audio output device.
| id | device ID to select, or NULL for the default device |
References aout_OutputTryLock(), aout_OutputUnlock(), aout_owner(), aout_owner_t::device, aout_owner_t::lock, aout_owner_t::req, strdup(), unlikely, unset_str, vlc_mutex_lock(), and vlc_mutex_unlock().
| int aout_DevicesList | ( | audio_output_t * | aout, |
| char *** | ids, | ||
| char *** | names | ||
| ) |
Enumerates possible audio output devices.
The function will heap-allocate two tables of heap-allocated strings; the caller is responsible for freeing all strings and both tables.
| ids | pointer to a table of device identifiers [OUT] |
| names | pointer to a table of device human-readable descriptions [OUT] |
References aout_OutputDevicesEnum(), aout_OutputLock(), and aout_OutputUnlock().
|
static |
References aout_OutputAssertLocked(), aout_owner(), aout_volume_SetVolume(), and aout_owner_t::volume.
Referenced by aout_New().
| int aout_MuteGet | ( | audio_output_t * | aout | ) |
Gets the audio output stream mute flag.
References var_InheritBool.
Referenced by playlist_MuteGet().
|
static |
References var_SetBool.
Referenced by aout_New().
| int aout_MuteSet | ( | audio_output_t * | aout, |
| bool | mute | ||
| ) |
Sets the audio output stream mute flag.
References aout_OutputTryLock(), aout_OutputUnlock(), aout_owner(), aout_owner_t::lock, aout_owner_t::mute, aout_owner_t::req, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by playlist_MuteSet().
| audio_output_t* aout_New | ( | ((vlc_object_t *)(vlc_object_t *parent)) | ) |
Creates an audio output object and initializes an output module.
References _, aout_Destructor(), aout_DeviceNotify(), aout_GainNotify(), aout_MuteNotify(), aout_owner(), aout_PolicyNotify(), aout_RestartNotify(), aout_VolumeNotify(), config_FindConfig(), aout_owner_t::device, audio_output::device_enum, audio_output::device_report, audio_output::device_select, audio_output::event, audio_output::gain_request, likely, module_config_t::list, module_config_t::list_count, module_config_t::list_text, aout_owner_t::lock, aout_owner_t::module, module_exists(), module_need, msg_Err, aout_owner_t::mute, audio_output::mute_report, audio_output::mute_set, audio_output::policy_report, module_config_t::psz, vlc_value_t::psz_string, aout_owner_t::req, audio_output::restart_request, audio_output::start, audio_output::stop, text, unlikely, unset_str, var_AddCallback, var_Change, var_Copy(), var_Create, var_GetNonEmptyString, var_SetString, vlc_custom_create, vlc_gettext(), vlc_mutex_init(), VLC_OBJECT, vlc_object_release, vlc_object_set_destructor, VLC_VAR_ADDCHOICE, VLC_VAR_BOOL, VLC_VAR_DOINHERIT, VLC_VAR_FLOAT, VLC_VAR_HASCHOICE, VLC_VAR_SETTEXT, VLC_VAR_STRING, aout_owner_t::volume, audio_output::volume_report, and audio_output::volume_set.
|
static |
References aout_owner(), aout_owner_t::lock, and vlc_assert_locked.
Referenced by aout_GainNotify(), aout_OutputDelete(), aout_OutputDevicesEnum(), aout_OutputDeviceSet(), aout_OutputFlush(), aout_OutputMuteSet(), aout_OutputNew(), aout_OutputPause(), aout_OutputPlay(), aout_OutputTimeGet(), and aout_OutputVolumeSet().
| void aout_OutputDelete | ( | audio_output_t * | aout | ) |
Stops the audio output stream (undoes aout_OutputNew()).
References aout_ChannelsRestart(), aout_OutputAssertLocked(), audio_output::stop, and var_DelCallback.
Referenced by aout_CheckReady(), aout_DecDelete(), and aout_DecNew().
|
static |
References aout_OutputAssertLocked(), and audio_output::device_enum.
Referenced by aout_DevicesList().
|
static |
References aout_OutputAssertLocked(), and audio_output::device_select.
Referenced by aout_OutputUnlock().
| void aout_OutputFlush | ( | audio_output_t * | aout, |
| bool | wait | ||
| ) |
Flushes or drains the audio output buffers.
This enables the output to expedite seek and stop.
| wait | if true, wait for buffer playback (i.e. drain), if false, discard the buffers immediately (i.e. flush) |
References aout_OutputAssertLocked(), and audio_output::flush.
Referenced by aout_DecFlush(), aout_DecIsEmpty(), aout_DecSynchronize(), and PauseDefault().
| void aout_OutputLock | ( | audio_output_t * | aout | ) |
References aout_owner(), aout_owner_t::lock, and vlc_mutex_lock().
Referenced by aout_DecChangePause(), aout_DecDelete(), aout_DecFlush(), aout_DecIsEmpty(), aout_DecNew(), aout_DecPlay(), aout_Destroy(), and aout_DevicesList().
|
static |
References aout_OutputAssertLocked(), and audio_output::mute_set.
Referenced by aout_OutputUnlock().
| int aout_OutputNew | ( | audio_output_t * | aout, |
| audio_sample_format_t *restrict | fmt | ||
| ) |
Starts an audio output stream.
| fmt | audio output stream format [IN/OUT] |
References _, AOUT_CHAN_DOLBYSTEREO, AOUT_CHAN_DUALMONO, AOUT_CHAN_LEFT, AOUT_CHAN_PHYSMASK, AOUT_CHAN_REVERSESTEREO, AOUT_CHAN_RIGHT, aout_ChannelsRestart(), AOUT_CHANS_STEREO, AOUT_FMT_LINEAR, aout_FormatPrepare(), aout_FormatPrint, aout_OutputAssertLocked(), AOUT_VAR_CHAN_DOLBYS, AOUT_VAR_CHAN_LEFT, AOUT_VAR_CHAN_RIGHT, AOUT_VAR_CHAN_RSTEREO, AOUT_VAR_CHAN_STEREO, vlc_value_t::i_int, msg_Err, vlc_value_t::psz_string, audio_output::start, var_AddCallback, var_Change, var_Create, var_GetInteger, var_Type, VLC_CODEC_FL32, VLC_CODEC_S16N, VLC_VAR_ADDCHOICE, VLC_VAR_DELCHOICE, VLC_VAR_DOINHERIT, VLC_VAR_HASCHOICE, VLC_VAR_INTEGER, VLC_VAR_SETTEXT, and VLC_VAR_SETVALUE.
| void aout_OutputPause | ( | audio_output_t * | aout, |
| bool | pause, | ||
| mtime_t | date | ||
| ) |
Notifies the audio output (if any) of pause/resume events.
This enables the output to expedite pause, instead of waiting for its buffers to drain.
References aout_OutputAssertLocked(), audio_output::pause, and PauseDefault().
Referenced by aout_DecChangePause().
| void aout_OutputPlay | ( | audio_output_t * | aout, |
| block_t * | block | ||
| ) |
Plays a decoded audio buffer.
References aout_OutputAssertLocked(), and audio_output::play.
Referenced by aout_DecPlay(), and aout_DecSilence().
| int aout_OutputTimeGet | ( | audio_output_t * | aout, |
| mtime_t * | delay | ||
| ) |
References aout_OutputAssertLocked(), and audio_output::time_get.
Referenced by aout_DecSynchronize().
|
static |
References aout_owner(), aout_owner_t::lock, and vlc_mutex_trylock().
Referenced by aout_DeviceSet(), aout_MuteSet(), and aout_VolumeSet().
| void aout_OutputUnlock | ( | audio_output_t * | aout | ) |
References aout_OutputDeviceSet(), aout_OutputMuteSet(), aout_OutputVolumeSet(), aout_owner(), aout_owner_t::device, aout_owner_t::lock, aout_owner_t::mute, aout_owner_t::req, unset_str, vlc_assert_locked, vlc_mutex_lock(), vlc_mutex_unlock(), and aout_owner_t::volume.
Referenced by aout_DecChangePause(), aout_DecDelete(), aout_DecFlush(), aout_DecIsEmpty(), aout_DecNew(), aout_DecPlay(), aout_Destroy(), aout_DeviceSet(), aout_DevicesList(), aout_MuteSet(), and aout_VolumeSet().
|
static |
References aout_OutputAssertLocked(), and audio_output::volume_set.
Referenced by aout_OutputUnlock().
|
static |
References audio_output::p_parent, var_DecInteger, and var_IncInteger.
Referenced by aout_New().
|
static |
References aout_RequestRestart().
Referenced by aout_New().
| float aout_VolumeGet | ( | audio_output_t * | aout | ) |
Gets the volume of the audio output stream (independent of mute).
References var_GetFloat.
Referenced by playlist_VolumeGet(), and playlist_VolumeUp().
|
static |
Supply or update the current custom ("hardware") volume.
| volume | current custom volume |
References var_SetFloat.
Referenced by aout_New().
| int aout_VolumeSet | ( | audio_output_t * | aout, |
| float | vol | ||
| ) |
Sets the volume of the audio output stream.
References aout_OutputTryLock(), aout_OutputUnlock(), aout_owner(), aout_owner_t::lock, aout_owner_t::req, vlc_mutex_lock(), vlc_mutex_unlock(), and aout_owner_t::volume.
Referenced by playlist_VolumeSet(), and playlist_VolumeUp().
|
static |
References aout_OutputFlush().
Referenced by aout_OutputPause().
|
static |
References var_Set.
Referenced by aout_Destroy(), and aout_New().
|
static |
Referenced by aout_Destructor(), aout_DeviceSet(), aout_New(), and aout_OutputUnlock().
1.8.1.2