Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
86d4cf0d
Commit
86d4cf0d
authored
Feb 10, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output_all: added API documentation
parent
facf146c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
output_all.h
src/output_all.h
+33
-0
No files found.
src/output_all.h
View file @
86d4cf0d
...
...
@@ -31,9 +31,16 @@
struct
audio_format
;
struct
tag
;
/**
* Global initialization: load audio outputs from the configuration
* file and initialize them.
*/
void
audio_output_all_init
(
void
);
/**
* Global finalization: free memory occupied by audio outputs. All
*/
void
audio_output_all_finish
(
void
);
...
...
@@ -56,21 +63,47 @@ audio_output_get(unsigned i);
struct
audio_output
*
audio_output_find
(
const
char
*
name
);
/**
* Opens all audio outputs which are not disabled.
*
* @param audio_format the preferred audio format, or NULL to reuse
* the previous format
* @return true on success, false on failure
*/
bool
audio_output_all_open
(
const
struct
audio_format
*
audio_format
);
/**
* Closes all audio outputs.
*/
void
audio_output_all_close
(
void
);
/**
* Play a chunk of audio data.
*
* @return true on success, false if no audio output was able to play
* (all closed then)
*/
bool
audio_output_all_play
(
const
char
*
data
,
size_t
size
);
/**
* Send metadata for the next chunk.
*/
void
audio_output_all_tag
(
const
struct
tag
*
tag
);
/**
* Puts all audio outputs into pause mode. Most implementations will
* simply close it then.
*/
void
audio_output_all_pause
(
void
);
/**
* Try to cancel data which may still be in the device's buffers.
*/
void
audio_output_all_cancel
(
void
);
...
...
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