Lines Matching refs:data

101      * carry audio data from the sink thread to the output thread. The POST
273 /* The sink snapshot time is the time when the last data was rendered.
300 /* Add the data that was sent between taking the sink input snapshot
447 /* If no outputs are connected, render some data and drop it immediately. */
492 /* If we are not running, we cannot produce any data */
496 /* Maybe there's some data in the requesting output's queue
501 /* Ok, now let's prepare some data if we really have to. Save the
509 /* Render data! */
515 /* OK, let's send this data to the other threads */
535 /* If another thread already prepared some data we received
536 * the data over the asyncmsgq, hence let's first process
545 /* OK, we need to prepare new data, but only if the sink is actually running */
557 /* If necessary, get some new data */
655 PA_RTPOLL_LATE, /* This one is not that important, since we check for data in _peek() anyway. */
685 /* We register the output. That means that the sink will start to pass data to
698 * pass any further data to this output */
731 static int sink_input_process_msg(pa_msgobject *obj, int code, void *data, int64_t offset, pa_memchunk *chunk) {
737 pa_usec_t *r = data;
785 return pa_sink_input_process_msg(obj, code, data, offset, chunk);
1030 static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offset, pa_memchunk *chunk) {
1036 int64_t *delay = data;
1055 output_add_within_thread(data);
1061 output_remove_within_thread(data);
1067 render_memblock(u, (struct output*) data, (size_t) offset);
1096 struct sink_snapshot *rdata = data;
1116 return pa_sink_process_msg(o, code, data, offset, chunk);
1156 pa_sink_input_new_data data;
1165 pa_sink_input_new_data_init(&data);
1166 pa_sink_input_new_data_set_sink(&data, o->sink, false, true);
1167 data.driver = __FILE__;
1168 pa_proplist_setf(data.proplist, PA_PROP_MEDIA_NAME, "Simultaneous output on %s", pa_strnull(pa_proplist_gets(o->sink->proplist, PA_PROP_DEVICE_DESCRIPTION)));
1169 pa_proplist_sets(data.proplist, PA_PROP_MEDIA_ROLE, "filter");
1170 pa_sink_input_new_data_set_sample_spec(&data, &u->sink->sample_spec);
1171 pa_sink_input_new_data_set_channel_map(&data, &u->sink->channel_map);
1172 data.module = u->module;
1173 data.resample_method = u->resample_method;
1174 data.flags = PA_SINK_INPUT_VARIABLE_RATE|PA_SINK_INPUT_DONT_MOVE|PA_SINK_INPUT_NO_CREATE_ON_SUSPEND;
1175 data.origin_sink = u->sink;
1178 data.flags |= PA_SINK_INPUT_NO_REMIX;
1180 pa_sink_input_new(&o->sink_input, u->core, &data);
1182 pa_sink_input_new_data_done(&data);
1309 * is now asked for new data. */
1325 * not asked for new data anymore */
1332 /* Finally, drop all queued data */
1473 pa_sink_new_data data;
1593 pa_sink_new_data_init(&data);
1594 data.namereg_fail = false;
1595 data.driver = __FILE__;
1596 data.module = m;
1597 pa_sink_new_data_set_name(&data, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME));
1598 pa_sink_new_data_set_sample_spec(&data, &ss);
1599 pa_sink_new_data_set_channel_map(&data, &map);
1600 pa_proplist_sets(data.proplist, PA_PROP_DEVICE_CLASS, "filter");
1603 pa_proplist_sets(data.proplist, "combine.slaves", slaves);
1605 if (pa_modargs_get_proplist(ma, "sink_properties", data.proplist, PA_UPDATE_REPLACE) < 0) {
1607 pa_sink_new_data_done(&data);
1613 if (NULL == pa_proplist_gets(data.proplist, PA_PROP_DEVICE_DESCRIPTION)) {
1615 pa_proplist_sets(data.proplist, PA_PROP_DEVICE_DESCRIPTION, "Simultaneous Output");
1618 u->sink = pa_sink_new(m->core, &data, PA_SINK_LATENCY|PA_SINK_DYNAMIC_LATENCY);
1619 pa_sink_new_data_done(&data);