
Functions | |
| int | aout_OutputNew (audio_output_t *p_aout, const audio_sample_format_t *p_format) |
| void | aout_OutputDelete (audio_output_t *aout) |
| Destroys the audio output plug-in instance. | |
| void | aout_OutputPlay (audio_output_t *aout, block_t *block) |
| Plays a decoded audio buffer. | |
| 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_VolumeNoneSet (audio_output_t *aout, float volume, bool mute) |
| Dummy volume setter. | |
| void | aout_VolumeNoneInit (audio_output_t *aout) |
| Configures the dummy volume setter. | |
| static int | aout_VolumeSoftSet (audio_output_t *aout, float volume, bool mute) |
| Volume setter for software volume. | |
| void | aout_VolumeSoftInit (audio_output_t *aout) |
| Configures the volume setter for software mixing and apply the default volume. | |
| void | aout_VolumeHardInit (audio_output_t *aout, aout_volume_cb setter) |
| Configures a custom volume setter. | |
| void | aout_VolumeHardSet (audio_output_t *aout, float volume, bool mute) |
| Supply or update the current custom ("hardware") volume. | |
| void aout_OutputDelete | ( | audio_output_t * | aout | ) |
Destroys the audio output plug-in instance.
References aout_assert_locked, aout_FiltersDestroyPipeline(), aout_owner(), aout_VolumeNoneInit(), aout_owner_t::filters, aout_owner_t::module, module_unneed, aout_owner_t::nb_filters, audio_output::pf_flush, audio_output::pf_pause, and audio_output::pf_play.
Referenced by aout_CheckRestart(), aout_DecNew(), and aout_Shutdown().
| 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_assert_locked, and audio_output::pf_flush.
Referenced by aout_DecFlush(), aout_DecIsEmpty(), and aout_InputPlay().
| int aout_OutputNew | ( | audio_output_t * | p_aout, | |
| const audio_sample_format_t * | p_format | |||
| ) |
References _, aout_assert_locked, AOUT_CHAN_CENTER, AOUT_CHAN_DOLBYSTEREO, AOUT_CHAN_DUALMONO, AOUT_CHAN_LEFT, AOUT_CHAN_PHYSMASK, AOUT_CHAN_RIGHT, aout_ChannelsRestart(), aout_FiltersCreatePipeline, AOUT_FMT_LINEAR, aout_FormatPrepare(), aout_FormatPrint, aout_owner(), AOUT_VAR_CHAN_DOLBYS, AOUT_VAR_CHAN_LEFT, AOUT_VAR_CHAN_RIGHT, AOUT_VAR_CHAN_RSTEREO, AOUT_VAR_CHAN_STEREO, aout_owner_t::filters, audio_output::format, HAVE_FPU, audio_format_t::i_bitspersample, audio_format_t::i_format, vlc_value_t::i_int, audio_format_t::i_original_channels, audio_format_t::i_physical_channels, aout_owner_t::mixer_format, aout_owner_t::module, module_need, module_unneed, msg_Err, aout_owner_t::nb_filters, vlc_value_t::psz_string, text, var_AddCallback, var_Change, var_Create, var_InheritInteger, var_SetInteger, var_TriggerCallback, var_Type, VLC_VAR_ADDCHOICE, VLC_VAR_HASCHOICE, VLC_VAR_INTEGER, and VLC_VAR_SETTEXT.
Referenced by aout_CheckRestart(), 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_assert_locked, and audio_output::pf_pause.
Referenced by aout_DecChangePause().
| void aout_OutputPlay | ( | audio_output_t * | aout, | |
| block_t * | block | |||
| ) |
Plays a decoded audio buffer.
References aout_assert_locked, aout_FiltersPlay(), aout_owner(), block_Release(), aout_owner_t::filters, block_t::i_buffer, aout_owner_t::nb_filters, and audio_output::pf_play.
Referenced by aout_DecPlay().
| void aout_VolumeHardInit | ( | audio_output_t * | aout, | |
| aout_volume_cb | setter | |||
| ) |
Configures a custom volume setter.
This is used by audio outputs that can control the hardware volume directly and/or emulate it internally.
| setter | volume setter callback |
References aout_assert_locked, audio_output::pf_volume_set, var_Create, VLC_VAR_BOOL, VLC_VAR_DOINHERIT, and VLC_VAR_INTEGER.
| void aout_VolumeHardSet | ( | audio_output_t * | aout, | |
| float | volume, | |||
| bool | mute | |||
| ) |
Supply or update the current custom ("hardware") volume.
| setter | volume setter callback | |
| volume | current custom volume | |
| mute | current mute flag |
References AOUT_VOLUME_DEFAULT, var_SetBool, var_SetInteger, and var_TriggerCallback.
| void aout_VolumeNoneInit | ( | audio_output_t * | aout | ) |
Configures the dummy volume setter.
References audio_output::pf_volume_set, and var_Destroy.
Referenced by aout_New(), and aout_OutputDelete().
| static int aout_VolumeNoneSet | ( | audio_output_t * | aout, | |
| float | volume, | |||
| bool | mute | |||
| ) | [static] |
Dummy volume setter.
This is the default volume setter.
| void aout_VolumeSoftInit | ( | audio_output_t * | aout | ) |
Configures the volume setter for software mixing and apply the default volume.
References aout_assert_locked, AOUT_VOLUME_DEFAULT, aout_VolumeSoftSet(), audio_output::pf_volume_set, var_InheritBool, and var_InheritInteger.
| static int aout_VolumeSoftSet | ( | audio_output_t * | aout, | |
| float | volume, | |||
| bool | mute | |||
| ) | [static] |
Volume setter for software volume.
References aout_assert_locked, aout_owner(), aout_owner_t::multiplier, and aout_owner_t::volume.
Referenced by aout_VolumeSoftInit().
1.7.1