mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa-compress-offload-sink: Improve write_queued_output_buffers comments
This commit is contained in:
		
							parent
							
								
									48716a72b1
								
							
						
					
					
						commit
						c504851dca
					
				
					 1 changed files with 9 additions and 5 deletions
				
			
		| 
						 | 
					@ -967,11 +967,15 @@ static int write_queued_output_buffers(struct impl *this)
 | 
				
			||||||
	 * If during the write attempts, only a portion of a chunk
 | 
						 * If during the write attempts, only a portion of a chunk
 | 
				
			||||||
	 * is written, we must keep track of the portion that hasn't
 | 
						 * is written, we must keep track of the portion that hasn't
 | 
				
			||||||
	 * been consumed yet. offset_within_oldest_output_buffer
 | 
						 * been consumed yet. offset_within_oldest_output_buffer
 | 
				
			||||||
	 * exists for this purpose. In this sink node, each SPA
 | 
						 * exists for this purpose. This can happen when the
 | 
				
			||||||
	 * buffer has exactly one chunk, so when a chunk is fully
 | 
						 * device_write() call below returns 0. The loop is then
 | 
				
			||||||
	 * consumed, the corresponding buffer is removed from the
 | 
						 * aborted, and the chunk is not fully written.
 | 
				
			||||||
	 * queued_output_buffers list, marked as available, and
 | 
						 *
 | 
				
			||||||
	 * returned to the pool through spa_node_call_reuse_buffer(). */
 | 
						 * In this sink node, each SPA buffer has exactly one chunk,
 | 
				
			||||||
 | 
						 * so when a chunk is fully consumed, the corresponding buffer
 | 
				
			||||||
 | 
						 * is removed from the queued_output_buffers list, marked as
 | 
				
			||||||
 | 
						 * available, and returned to the pool through
 | 
				
			||||||
 | 
						 * spa_node_call_reuse_buffer(). */
 | 
				
			||||||
again:
 | 
					again:
 | 
				
			||||||
	total_num_written_bytes = 0;
 | 
						total_num_written_bytes = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue