Lines Matching defs:streams
37 /* Set the number of streams such that it allows two simultaneous instances of
38 * connect-stress to be run and not go above the max limit for streams-per-sink.
39 * This leaves enough room for a couple other streams from regular system usage,
41 * playing >=3 streams outside of the test - including internal loopback, rtp,
42 * combine, remap streams etc.) */
54 static pa_stream *streams[NSTREAMS];
100 if (streams[i]) {
101 pa_stream_disconnect(streams[i]);
102 pa_stream_unref(streams[i]);
103 streams[i] = NULL;
118 .prebuf = 0, /* Setting prebuf to 0 guarantees us the streams will run synchronously, no matter what */
175 streams[i] = pa_stream_new(c, name, &sample_spec, NULL);
176 fail_unless(streams[i] != NULL);
177 pa_stream_set_state_callback(streams[i], stream_state_callback, NULL);
178 pa_stream_set_write_callback(streams[i], stream_write_callback, NULL);
179 pa_stream_connect_playback(streams[i], NULL, &buffer_attr, 0, NULL, NULL);
202 streams[i] = NULL;