|
VLC
2.1.0-git
|

Go to the source code of this file.
Data Structures | |
| struct | aout_request_vout_t |
| struct | aout_owner_t |
| struct | aout_instance_t |
Macros | |
| #define | AOUT_MAX_INPUT_RATE (4) |
| #define | AOUT_MAX_FILTERS 10 |
| #define | aout_volume_New(o, g) aout_volume_New(VLC_OBJECT(o), g) |
| #define | aout_New(a) aout_New(VLC_OBJECT(a)) |
| #define | aout_FormatsPrint(o, t, a, b) aout_FormatsPrint(VLC_OBJECT(o), t, a, b) |
Typedefs | |
| typedef struct aout_volume | aout_volume_t |
Enumerations | |
| enum | { AOUT_RESAMPLING_NONE = 0, AOUT_RESAMPLING_UP, AOUT_RESAMPLING_DOWN } |
| #define aout_FormatsPrint | ( | o, | |
| t, | |||
| a, | |||
| b | |||
| ) | aout_FormatsPrint(VLC_OBJECT(o), t, a, b) |
Referenced by aout_FiltersNew(), and aout_FiltersPipelineCreate().
| #define AOUT_MAX_FILTERS 10 |
Referenced by aout_FiltersNew().
| #define AOUT_MAX_INPUT_RATE (4) |
Referenced by aout_DecPlay(), and DecoderPlayAudio().
| #define aout_New | ( | a | ) | aout_New(VLC_OBJECT(a)) |
Referenced by input_resource_GetAout().
| #define aout_volume_New | ( | o, | |
| g | |||
| ) | aout_volume_New(VLC_OBJECT(o), g) |
Referenced by aout_DecNew().
| typedef struct aout_volume aout_volume_t |
| bool aout_ChangeFilterString | ( | vlc_object_t * | manager, |
| vlc_object_t * | aout, | ||
| const char * | var, | ||
| const char * | name, | ||
| bool | b_add | ||
| ) |
References config_PutPsz, FilterOrder(), vlc_object_t::p_libvlc, psz_name, var_CreateGetString, var_Destroy, var_GetString, and var_SetString.
Referenced by ChangeFiltersString(), and playlist_EnableAudioFilter().
| void aout_DecChangePause | ( | audio_output_t * | , |
| bool | b_paused, | ||
| mtime_t | i_date | ||
| ) |
References aout_OutputLock(), aout_OutputPause(), aout_OutputUnlock(), aout_owner(), aout_owner_t::end, audio_format_t::i_format, aout_owner_t::mixer_format, aout_owner_t::sync, and VLC_TS_INVALID.
Referenced by aout_new_buffer(), and DecoderOutputChangePause().
| void aout_DecDelete | ( | audio_output_t * | ) |
Stops all plugins involved in the audio output.
References aout_FiltersDelete(), aout_OutputDelete(), aout_OutputLock(), aout_OutputUnlock(), aout_owner(), aout_volume_Delete(), audio_format_t::i_format, aout_owner_t::mixer_format, var_Destroy, and aout_owner_t::volume.
Referenced by aout_new_buffer(), and DeleteDecoder().
| void aout_DecDeleteBuffer | ( | audio_output_t * | , |
| block_t * | |||
| ) |
References block_Release().
Referenced by DecoderDecodeAudio().
| void aout_DecFlush | ( | audio_output_t * | ) |
References aout_OutputFlush(), aout_OutputLock(), aout_OutputUnlock(), aout_owner(), aout_owner_t::end, audio_format_t::i_format, aout_owner_t::mixer_format, aout_owner_t::sync, and VLC_TS_INVALID.
Referenced by DecoderDecodeAudio(), DecoderProcessAudio(), and DeleteDecoder().
| int aout_DecGetResetLost | ( | audio_output_t * | ) |
References aout_owner(), and aout_owner_t::buffers_lost.
Referenced by DecoderPlayAudio().
| bool aout_DecIsEmpty | ( | audio_output_t * | ) |
References aout_OutputFlush(), aout_OutputLock(), aout_OutputUnlock(), aout_owner(), aout_owner_t::end, audio_format_t::i_format, mdate(), aout_owner_t::mixer_format, aout_owner_t::sync, and VLC_TS_INVALID.
Referenced by input_DecoderIsEmpty().
| int aout_DecNew | ( | audio_output_t * | , |
| const audio_sample_format_t * | , | ||
| const audio_replay_gain_t * | , | ||
| const aout_request_vout_t * | |||
| ) |
Creates an audio output.
References aout_FiltersNew(), aout_FormatNbChannels(), aout_OutputDelete(), aout_OutputLock(), aout_OutputNew(), aout_OutputUnlock(), aout_owner(), AOUT_RESAMPLING_NONE, aout_volume_Delete(), aout_volume_New, aout_volume_SetFormat(), atomic_init, aout_owner_t::buffers_lost, aout_owner_t::discontinuity, aout_owner_t::end, audio_format_t::i_channels, audio_format_t::i_format, audio_format_t::i_rate, aout_owner_t::input_format, aout_owner_t::mixer_format, msg_Err, aout_owner_t::resamp_type, aout_owner_t::restart, aout_owner_t::sync, var_Destroy, VLC_TS_INVALID, and aout_owner_t::volume.
Referenced by aout_new_buffer().
| block_t* aout_DecNewBuffer | ( | audio_output_t * | , |
| size_t | |||
| ) |
References aout_owner(), block_Alloc(), audio_format_t::i_bytes_per_frame, audio_format_t::i_frame_length, block_t::i_length, block_t::i_nb_samples, block_t::i_pts, aout_owner_t::input_format, and likely.
Referenced by aout_new_buffer().
| int aout_DecPlay | ( | audio_output_t * | , |
| block_t * | , | ||
| int | i_input_rate | ||
| ) |
References aout_CheckReady(), aout_DecSynchronize(), aout_FiltersPlay(), AOUT_MAX_ADVANCE_TIME, AOUT_MAX_INPUT_RATE, AOUT_MAX_PTS_DELAY, aout_OutputLock(), aout_OutputPlay(), aout_OutputUnlock(), aout_owner(), aout_volume_Amplify(), BLOCK_FLAG_DISCONTINUITY, block_Release(), aout_owner_t::buffers_lost, CLOCK_FREQ, aout_owner_t::discontinuity, aout_owner_t::end, block_t::i_flags, block_t::i_length, block_t::i_nb_samples, block_t::i_pts, audio_format_t::i_rate, aout_owner_t::input_format, INPUT_RATE_DEFAULT, mdate(), msg_Err, msg_Warn, aout_owner_t::sync, unlikely, VLC_TS_0, and aout_owner_t::volume.
Referenced by DecoderPlayAudio().
| void aout_Destroy | ( | audio_output_t * | ) |
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().
| bool aout_FiltersAdjustResampling | ( | audio_output_t * | , |
| int | |||
| ) |
References aout_owner(), aout_owner_t::resampler, and aout_owner_t::resampling.
Referenced by aout_DecSynchronize(), and aout_StopResampling().
| void aout_FiltersDelete | ( | audio_output_t * | ) |
Destroys the audio filters.
References aout_FiltersPipelineDestroy(), aout_owner(), EqualizerCallback(), aout_owner_t::filters, aout_owner_t::nb_filters, aout_owner_t::recycle_vout, aout_owner_t::resampler, var_DelCallback, var_InheritString, and VisualizationCallback().
Referenced by aout_CheckReady(), and aout_DecDelete().
| int aout_FiltersNew | ( | audio_output_t * | , |
| const audio_sample_format_t * | , | ||
| const audio_sample_format_t * | , | ||
| const aout_request_vout_t * | |||
| ) |
Referenced by aout_CheckReady(), and aout_DecNew().
| block_t* aout_FiltersPlay | ( | audio_output_t * | , |
| block_t * | , | ||
| int | rate | ||
| ) |
References aout_FiltersPipelinePlay(), aout_owner(), es_format_t::audio, block_Release(), aout_owner_t::filters, filter_t::fmt_in, audio_format_t::i_rate, INPUT_RATE_DEFAULT, aout_owner_t::nb_filters, aout_owner_t::rate_filter, aout_owner_t::resampler, and aout_owner_t::resampling.
Referenced by aout_DecPlay().
| void aout_FormatsPrint | ( | vlc_object_t * | , |
| const char * | , | ||
| const audio_sample_format_t * | , | ||
| const audio_sample_format_t * | |||
| ) |
|
inlinestatic |
References aout_RequestRestart(), and AOUT_RESTART_FILTERS.
Referenced by EqualizerCallback(), playlist_EnableAudioFilter(), and VisualizationCallback().
| audio_output_t* aout_New | ( | vlc_object_t * | ) |
| 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().
| 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 * | ) |
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().
| int aout_OutputNew | ( | audio_output_t * | , |
| audio_sample_format_t * | |||
| ) |
Referenced by aout_CheckReady(), and aout_DecNew().
| 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 * | , |
| mtime_t * | |||
| ) |
References aout_OutputAssertLocked(), and audio_output::time_get.
Referenced by aout_DecSynchronize().
| void aout_OutputUnlock | ( | audio_output_t * | ) |
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().
|
inlinestatic |
Referenced by aout_CheckReady(), aout_DecChangePause(), aout_DecDelete(), aout_DecFlush(), aout_DecGetResetLost(), aout_DecIsEmpty(), aout_DecNew(), aout_DecNewBuffer(), aout_DecPlay(), aout_DecSilence(), aout_DecSynchronize(), aout_Destroy(), aout_Destructor(), aout_DeviceSet(), aout_filter_RequestVout(), aout_FiltersAdjustResampling(), aout_FiltersDelete(), aout_FiltersNew(), aout_FiltersPlay(), aout_GainNotify(), aout_MuteSet(), aout_New(), aout_OutputAssertLocked(), aout_OutputLock(), aout_OutputTryLock(), aout_OutputUnlock(), aout_RequestRestart(), aout_StopResampling(), and aout_VolumeSet().
| void aout_RequestRestart | ( | audio_output_t * | aout, |
| unsigned | mode | ||
| ) |
Marks the audio output for restart, to update any parameter of the output plug-in (e.g.
output device or channel mapping).
References aout_owner(), msg_Dbg, and aout_owner_t::restart.
Referenced by aout_InputRequestRestart(), and aout_RestartNotify().
| int aout_volume_Amplify | ( | aout_volume_t * | , |
| block_t * | |||
| ) |
Applies replay gain and software volume to an audio buffer.
References audio_volume::amplify, aout_volume::gain_factor, aout_volume::module, aout_volume::object, aout_volume::output_factor, unlikely, and vlc_atomic_loadf().
Referenced by aout_DecPlay().
| void aout_volume_Delete | ( | aout_volume_t * | ) |
Destroys a software amplifier.
References aout_volume::module, module_unneed, aout_volume::object, audio_volume::p_parent, ReplayGainCallback(), var_DelCallback, and vlc_object_release.
Referenced by aout_DecDelete(), and aout_DecNew().
| aout_volume_t* aout_volume_New | ( | vlc_object_t * | , |
| const audio_replay_gain_t * | |||
| ) |
| int aout_volume_SetFormat | ( | aout_volume_t * | , |
| vlc_fourcc_t | |||
| ) |
Selects the current sample format for software amplification.
References audio_volume::format, aout_volume::module, module_need, module_unneed, msg_Dbg, aout_volume::object, and unlikely.
Referenced by aout_CheckReady(), and aout_DecNew().
| void aout_volume_SetVolume | ( | aout_volume_t * | , |
| float | |||
| ) |
References aout_volume::output_factor, and unlikely.
Referenced by aout_GainNotify().
1.8.1.2