mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
modules: update docs
This commit is contained in:
parent
e78b886785
commit
1e46d114d0
2 changed files with 82 additions and 0 deletions
|
|
@ -49,6 +49,47 @@
|
||||||
#include <pipewire/i18n.h>
|
#include <pipewire/i18n.h>
|
||||||
|
|
||||||
/** \page page_module_example_sink PipeWire Module: Example Sink
|
/** \page page_module_example_sink PipeWire Module: Example Sink
|
||||||
|
*
|
||||||
|
* The example sink is a good starting point for writing a custom
|
||||||
|
* sink. We refer to the source code for more information.
|
||||||
|
*
|
||||||
|
* ## Module Options
|
||||||
|
*
|
||||||
|
* - `node.name`: a unique name for the stream
|
||||||
|
* - `node.description`: a human readable name for the stream
|
||||||
|
* - `stream.props = {}`: properties to be passed to the stream
|
||||||
|
*
|
||||||
|
* ## General options
|
||||||
|
*
|
||||||
|
* Options with well-known behavior.
|
||||||
|
*
|
||||||
|
* - \ref PW_KEY_REMOTE_NAME
|
||||||
|
* - \ref PW_KEY_AUDIO_RATE
|
||||||
|
* - \ref PW_KEY_AUDIO_CHANNELS
|
||||||
|
* - \ref SPA_KEY_AUDIO_POSITION
|
||||||
|
* - \ref PW_KEY_MEDIA_NAME
|
||||||
|
* - \ref PW_KEY_NODE_LATENCY
|
||||||
|
* - \ref PW_KEY_NODE_NAME
|
||||||
|
* - \ref PW_KEY_NODE_DESCRIPTION
|
||||||
|
* - \ref PW_KEY_NODE_GROUP
|
||||||
|
* - \ref PW_KEY_NODE_VIRTUAL
|
||||||
|
* - \ref PW_KEY_MEDIA_CLASS
|
||||||
|
*
|
||||||
|
* ## Example configuration
|
||||||
|
*
|
||||||
|
*\code{.unparsed}
|
||||||
|
* context.modules = [
|
||||||
|
* { name = libpipewire-module-example-sink
|
||||||
|
* args = {
|
||||||
|
* node.name = "example_sink"
|
||||||
|
* node.description = "My Example Sink"
|
||||||
|
* stream.props = {
|
||||||
|
* audio.position = [ FL FR ]
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* ]
|
||||||
|
*\endcode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NAME "example-sink"
|
#define NAME "example-sink"
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,47 @@
|
||||||
#include <pipewire/i18n.h>
|
#include <pipewire/i18n.h>
|
||||||
|
|
||||||
/** \page page_module_example_source PipeWire Module: Example Source
|
/** \page page_module_example_source PipeWire Module: Example Source
|
||||||
|
*
|
||||||
|
* The example source is a good starting point for writing a custom
|
||||||
|
* source. We refer to the source code for more information.
|
||||||
|
*
|
||||||
|
* ## Module Options
|
||||||
|
*
|
||||||
|
* - `node.name`: a unique name for the stream
|
||||||
|
* - `node.description`: a human readable name for the stream
|
||||||
|
* - `stream.props = {}`: properties to be passed to the stream
|
||||||
|
*
|
||||||
|
* ## General options
|
||||||
|
*
|
||||||
|
* Options with well-known behavior.
|
||||||
|
*
|
||||||
|
* - \ref PW_KEY_REMOTE_NAME
|
||||||
|
* - \ref PW_KEY_AUDIO_RATE
|
||||||
|
* - \ref PW_KEY_AUDIO_CHANNELS
|
||||||
|
* - \ref SPA_KEY_AUDIO_POSITION
|
||||||
|
* - \ref PW_KEY_MEDIA_NAME
|
||||||
|
* - \ref PW_KEY_NODE_LATENCY
|
||||||
|
* - \ref PW_KEY_NODE_NAME
|
||||||
|
* - \ref PW_KEY_NODE_DESCRIPTION
|
||||||
|
* - \ref PW_KEY_NODE_GROUP
|
||||||
|
* - \ref PW_KEY_NODE_VIRTUAL
|
||||||
|
* - \ref PW_KEY_MEDIA_CLASS
|
||||||
|
*
|
||||||
|
* ## Example configuration
|
||||||
|
*
|
||||||
|
*\code{.unparsed}
|
||||||
|
* context.modules = [
|
||||||
|
* { name = libpipewire-module-example-source
|
||||||
|
* args = {
|
||||||
|
* node.name = "example_source"
|
||||||
|
* node.description = "My Example Source"
|
||||||
|
* stream.props = {
|
||||||
|
* audio.position = [ FL FR ]
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* ]
|
||||||
|
*\endcode
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NAME "example-source"
|
#define NAME "example-source"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue