mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05: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>
 | 
			
		||||
 | 
			
		||||
/** \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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue