Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
f492f85c
Commit
f492f85c
authored
Nov 12, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: improve plugin interface documentation
parent
2640a57c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
12 deletions
+40
-12
include/vlc_aout.h
include/vlc_aout.h
+40
-12
No files found.
include/vlc_aout.h
View file @
f492f85c
...
...
@@ -137,18 +137,46 @@ struct audio_output
{
VLC_COMMON_MEMBERS
struct
aout_sys_t
*
sys
;
/**< Output plugin private data */
int
(
*
start
)
(
audio_output_t
*
,
audio_sample_format_t
*
);
void
(
*
stop
)
(
audio_output_t
*
);
void
(
*
play
)(
audio_output_t
*
,
block_t
*
,
mtime_t
*
);
/**< Play callback
- queue a block for playback */
void
(
*
pause
)(
audio_output_t
*
,
bool
,
mtime_t
);
/**< Pause/resume
callback (optional, may be NULL) */
void
(
*
flush
)(
audio_output_t
*
,
bool
);
/**< Flush/drain callback
(optional, may be NULL) */
int
(
*
volume_set
)(
audio_output_t
*
,
float
);
/**< Volume setter (or NULL) */
int
(
*
mute_set
)(
audio_output_t
*
,
bool
);
/**< Mute setter (or NULL) */
struct
aout_sys_t
*
sys
;
/**< Private data for callbacks */
int
(
*
start
)(
audio_output_t
*
,
audio_sample_format_t
*
fmt
);
/**< Starts a new stream (mandatory, cannot be NULL).
* \param fmt input stream sample format upon entry,
* output stream sample format upon return [IN/OUT]
* \return VLC_SUCCESS on success, non-zero on failure
* \note No other stream may be already started when called.
*/
void
(
*
stop
)(
audio_output_t
*
);
/**< Stops the existing stream (optional, may be NULL).
* \note A stream must have been started when called.
*/
void
(
*
play
)(
audio_output_t
*
,
block_t
*
,
mtime_t
*
);
/**< Queues a block of samples for playback (mandatory, cannot be NULL).
* \note A stream must have been started when called.
*/
void
(
*
pause
)(
audio_output_t
*
,
bool
pause
,
mtime_t
date
);
/**< Pauses or resumes playback (optional, may be NULL).
* \param pause pause if true, resume from pause if false
* \param date timestamp when the pause or resume was requested
* \note A stream must have been started when called.
*/
void
(
*
flush
)(
audio_output_t
*
,
bool
wait
);
/**< Flushes or drains the playback buffers (optional, may be NULL).
* \param wait true to wait for playback of pending buffers (drain),
* false to discard pending buffers (flush)
* \note A stream must have been started when called.
*/
int
(
*
volume_set
)(
audio_output_t
*
,
float
volume
);
/**< Changes playback volume (optional, may be NULL).
* \param volume requested volume (0. = mute, 1. = nominal)
* \note The volume is always a positive number.
* \warning A stream may or may not have been started when called.
*/
int
(
*
mute_set
)(
audio_output_t
*
,
bool
mute
);
/**< Changes muting (optinal, may be NULL).
* \param mute true to mute, false to unmute
* \warning A stream may or may not have been started when called.
*/
struct
{
void
(
*
volume_report
)(
audio_output_t
*
,
float
);
void
(
*
mute_report
)(
audio_output_t
*
,
bool
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment