Lines Matching defs:formats
246 pa_idxset *formats = NULL;
260 /* Extended API: let's see if this sink supports the formats the client can provide */
261 formats = pa_sink_check_formats(s, data->req_formats);
263 if (formats && !pa_idxset_isempty(formats)) {
264 /* Sink supports at least one of the requested formats */
273 data->nego_formats = formats;
275 /* Sink doesn't support any of the formats requested by the client */
276 if (formats)
277 pa_idxset_free(formats, (pa_free_cb_t) pa_format_info_free);
285 bool pa_sink_input_new_data_set_formats(pa_sink_input_new_data *data, pa_idxset *formats) {
287 pa_assert(formats);
292 data->req_formats = formats;
381 /* From this point on, we want to work only with formats, and get back
385 pa_idxset *formats;
394 formats = pa_idxset_new(NULL, NULL);
395 pa_idxset_put(formats, f, NULL);
396 pa_sink_input_new_data_set_formats(data, formats);