mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	stream: Simplify passing of formats in extended API
Passing a NULL-terminated array of pa_format_info pointers is a bit unwieldy for clients. Instead of this, let's pass in an array of pointers and the number of elements in the array.
This commit is contained in:
		
							parent
							
								
									573b9d6ca8
								
							
						
					
					
						commit
						257bdcafe3
					
				
					 3 changed files with 14 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -365,6 +365,7 @@ pa_stream *pa_stream_new_extended(
 | 
			
		|||
        pa_context *c                     /**< The context to create this stream in */,
 | 
			
		||||
        const char *name                  /**< A name for this stream */,
 | 
			
		||||
        pa_format_info * const * formats  /**< The list of formats that can be provided */,
 | 
			
		||||
        unsigned int n_formats            /**< The number of formats being passed in */,
 | 
			
		||||
        pa_proplist *p                    /**< The initial property list */);
 | 
			
		||||
 | 
			
		||||
/** Decrease the reference counter by one */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue