[vlc-commits] aout: document event callbacks

Rémi Denis-Courmont git at videolan.org
Wed Aug 8 18:10:06 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug  8 19:08:13 2012 +0300| [8f95eae991d5ab5a6484e97feaad8b093843b4cc] | committer: Rémi Denis-Courmont

aout: document event callbacks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f95eae991d5ab5a6484e97feaad8b093843b4cc
---

 include/vlc_aout.h |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/include/vlc_aout.h b/include/vlc_aout.h
index 4763027..f0567d2 100644
--- a/include/vlc_aout.h
+++ b/include/vlc_aout.h
@@ -224,21 +224,36 @@ VLC_API void aout_FormatPrint(vlc_object_t *, const char *,
 #define aout_FormatPrint(o, t, f) aout_FormatPrint(VLC_OBJECT(o), t, f)
 VLC_API const char * aout_FormatPrintChannels( const audio_sample_format_t * ) VLC_USED;
 
+/**
+ * Report change of configured audio volume to the core and UI.
+ */
 static inline void aout_VolumeReport(audio_output_t *aout, float volume)
 {
     aout->event.volume_report(aout, volume);
 }
 
+/**
+ * Report change of muted flag to the core and UI.
+ */
 static inline void aout_MuteReport(audio_output_t *aout, bool mute)
 {
     aout->event.mute_report(aout, mute);
 }
 
+/**
+ * Report audio policy status.
+ * \parm cork true to request a cork, false to undo any pending cork.
+ */
 static inline void aout_PolicyReport(audio_output_t *aout, bool cork)
 {
     aout->event.policy_report(aout, cork);
 }
 
+/**
+ * Request a change of software audio amplification.
+ * \param gain linear amplitude gain (must be positive)
+ * \warning Values in excess 1.0 may cause overflow and distorsion.
+ */
 static inline int aout_GainRequest(audio_output_t *aout, float gain)
 {
     return aout->event.gain_request(aout, gain);



More information about the vlc-commits mailing list