mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-03-07 04:33:59 -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
|
|
@ -84,15 +84,16 @@ PA_C_DECL_BEGIN
|
|||
* PA_INVALID_INDEX on failure. \since 0.9.11 */
|
||||
typedef void (*pa_context_play_sample_cb_t)(pa_context *c, uint32_t idx, void *userdata);
|
||||
|
||||
/** Make this stream a sample upload stream */
|
||||
/** Make this stream a sample upload stream. Returns zero on success. */
|
||||
int pa_stream_connect_upload(pa_stream *s, size_t length);
|
||||
|
||||
/** Finish the sample upload, the stream name will become the sample
|
||||
* name. You cancel a sample upload by issuing
|
||||
* pa_stream_disconnect() */
|
||||
* pa_stream_disconnect(). Returns zero on success. */
|
||||
int pa_stream_finish_upload(pa_stream *s);
|
||||
|
||||
/** Remove a sample from the sample cache. Returns an operation object which may be used to cancel the operation while it is running */
|
||||
/** Remove a sample from the sample cache. Returns an operation object which
|
||||
* may be used to cancel the operation while it is running. */
|
||||
pa_operation* pa_context_remove_sample(pa_context *c, const char *name, pa_context_success_cb_t cb, void *userdata);
|
||||
|
||||
/** Play a sample from the sample cache to the specified device. If
|
||||
|
|
@ -102,7 +103,7 @@ pa_operation* pa_context_play_sample(
|
|||
pa_context *c /**< Context */,
|
||||
const char *name /**< Name of the sample to play */,
|
||||
const char *dev /**< Sink to play this sample on */,
|
||||
pa_volume_t volume /**< Volume to play this sample with. Starting with 0.9.15 you may pass here PA_VOLUME_INVALID which will leave the decision about the volume to the server side which is a good idea. */ ,
|
||||
pa_volume_t volume /**< Volume to play this sample with. Starting with 0.9.15 you may pass here PA_VOLUME_INVALID which will leave the decision about the volume to the server side, which is a good idea. */ ,
|
||||
pa_context_success_cb_t cb /**< Call this function after successfully starting playback, or NULL */,
|
||||
void *userdata /**< Userdata to pass to the callback */);
|
||||
|
||||
|
|
@ -114,7 +115,7 @@ pa_operation* pa_context_play_sample_with_proplist(
|
|||
pa_context *c /**< Context */,
|
||||
const char *name /**< Name of the sample to play */,
|
||||
const char *dev /**< Sink to play this sample on */,
|
||||
pa_volume_t volume /**< Volume to play this sample with. Starting with 0.9.15 you may pass here PA_VOLUME_INVALID which will leave the decision about the volume to the server side which is a good idea. */ ,
|
||||
pa_volume_t volume /**< Volume to play this sample with. Starting with 0.9.15 you may pass here PA_VOLUME_INVALID which will leave the decision about the volume to the server side, which is a good idea. */ ,
|
||||
pa_proplist *proplist /**< Property list for this sound. The property list of the cached entry will be merged into this property list */,
|
||||
pa_context_play_sample_cb_t cb /**< Call this function after successfully starting playback, or NULL */,
|
||||
void *userdata /**< Userdata to pass to the callback */);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue