mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	improve format
This commit is contained in:
		
							parent
							
								
									f4f2e4bf68
								
							
						
					
					
						commit
						eea05cc139
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -139,6 +139,7 @@ int main(int argc, char *argv[])
 | 
				
			||||||
		"I", data.type.media_type.audio,
 | 
							"I", data.type.media_type.audio,
 | 
				
			||||||
		"I", data.type.media_subtype.raw,
 | 
							"I", data.type.media_subtype.raw,
 | 
				
			||||||
		":", data.type.format_audio.format,	"I", data.type.audio_format.F32,
 | 
							":", data.type.format_audio.format,	"I", data.type.audio_format.F32,
 | 
				
			||||||
 | 
							":", data.type.format_audio.layout,	"i", SPA_AUDIO_LAYOUT_INTERLEAVED,
 | 
				
			||||||
		":", data.type.format_audio.channels,	"i", DEFAULT_CHANNELS,
 | 
							":", data.type.format_audio.channels,	"i", DEFAULT_CHANNELS,
 | 
				
			||||||
		":", data.type.format_audio.rate,	"i", DEFAULT_RATE);
 | 
							":", data.type.format_audio.rate,	"i", DEFAULT_RATE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -368,6 +368,7 @@ static int port_enum_formats(struct spa_node *node,
 | 
				
			||||||
				"I", t->media_type.audio,
 | 
									"I", t->media_type.audio,
 | 
				
			||||||
				"I", t->media_subtype.raw,
 | 
									"I", t->media_subtype.raw,
 | 
				
			||||||
	                        ":", t->format_audio.format,   "I", t->audio_format.F32,
 | 
						                        ":", t->format_audio.format,   "I", t->audio_format.F32,
 | 
				
			||||||
 | 
						                        ":", t->format_audio.layout,   "i", SPA_AUDIO_LAYOUT_NON_INTERLEAVED,
 | 
				
			||||||
	                        ":", t->format_audio.rate,     "i", n->sample_rate,
 | 
						                        ":", t->format_audio.rate,     "i", n->sample_rate,
 | 
				
			||||||
	                        ":", t->format_audio.channels, "i", 1);
 | 
						                        ":", t->format_audio.channels, "i", 1);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					@ -426,8 +427,9 @@ static int port_enum_params(struct spa_node *node,
 | 
				
			||||||
			id, t->param_buffers.Buffers,
 | 
								id, t->param_buffers.Buffers,
 | 
				
			||||||
			":", t->param_buffers.size,    "i", n->buffer_size * sizeof(float),
 | 
								":", t->param_buffers.size,    "i", n->buffer_size * sizeof(float),
 | 
				
			||||||
//				SPA_POD_PROP_MIN_MAX(24, 4096),
 | 
					//				SPA_POD_PROP_MIN_MAX(24, 4096),
 | 
				
			||||||
 | 
								":", t->param_buffers.blocks,  "i", 1,
 | 
				
			||||||
			":", t->param_buffers.stride,  "i", 0,
 | 
								":", t->param_buffers.stride,  "i", 0,
 | 
				
			||||||
			":", t->param_buffers.buffers, "ir", 2,
 | 
								":", t->param_buffers.buffers, "ir", 1,
 | 
				
			||||||
				SPA_POD_PROP_MIN_MAX(1, MAX_BUFFERS),
 | 
									SPA_POD_PROP_MIN_MAX(1, MAX_BUFFERS),
 | 
				
			||||||
			":", t->param_buffers.align,   "i", 16);
 | 
								":", t->param_buffers.align,   "i", 16);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue