mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
api documentation improvements
includes typo fixes, neatening, addition of more return info, and such.
This commit is contained in:
parent
7973dfd768
commit
b683350856
15 changed files with 205 additions and 143 deletions
|
|
@ -78,7 +78,8 @@ typedef enum pa_encoding {
|
|||
/** Returns a printable string representing the given encoding type. \since 1.0 */
|
||||
const char *pa_encoding_to_string(pa_encoding_t e) PA_GCC_CONST;
|
||||
|
||||
/** Converts a string of the form returned by \a pa_encoding_to_string() back to a \a pa_encoding_t. \since 1.0 */
|
||||
/** Converts a string of the form returned by \a pa_encoding_to_string() back to
|
||||
* a \a pa_encoding_t. \since 1.0 */
|
||||
pa_encoding_t pa_encoding_from_string(const char *encoding);
|
||||
|
||||
/** Represents the format of data provided in a stream or processed by a sink. \since 1.0 */
|
||||
|
|
@ -90,7 +91,8 @@ typedef struct pa_format_info {
|
|||
/**< Additional encoding-specific properties such as sample rate, bitrate, etc. */
|
||||
} pa_format_info;
|
||||
|
||||
/** Allocates a new \a pa_format_info structure. Clients must initialise at least the encoding field themselves. \since 1.0 */
|
||||
/** Allocates a new \a pa_format_info structure. Clients must initialise at
|
||||
* least the encoding field themselves. Free with pa_format_info_free. \since 1.0 */
|
||||
pa_format_info* pa_format_info_new(void);
|
||||
|
||||
/** Returns a new \a pa_format_info struct and representing the same format as \a src. \since 1.0 */
|
||||
|
|
@ -102,7 +104,8 @@ void pa_format_info_free(pa_format_info *f);
|
|||
/** Returns non-zero when the format info structure is valid. \since 1.0 */
|
||||
int pa_format_info_valid(const pa_format_info *f);
|
||||
|
||||
/** Returns non-zero when the format info structure represents a PCM (i.e.\ uncompressed data) format. \since 1.0 */
|
||||
/** Returns non-zero when the format info structure represents a PCM
|
||||
* (i.e.\ uncompressed data) format. \since 1.0 */
|
||||
int pa_format_info_is_pcm(const pa_format_info *f);
|
||||
|
||||
/** Returns non-zero if the format represented by \a first is a subset of
|
||||
|
|
@ -121,7 +124,7 @@ int pa_format_info_is_compatible(const pa_format_info *first, const pa_format_in
|
|||
* it might become part of an ABI. \since 1.0 */
|
||||
#define PA_FORMAT_INFO_SNPRINT_MAX 256
|
||||
|
||||
/** Return a human-readable string representing the given format. \since 1.0 */
|
||||
/** Make a human-readable string representing the given format. Returns \a s. \since 1.0 */
|
||||
char *pa_format_info_snprint(char *s, size_t l, const pa_format_info *f);
|
||||
|
||||
/** Parse a human-readable string of the form generated by
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue