Lines Matching defs:rec_stream
88 pa_stream *rec_stream;
275 !(i)->rec_stream || pa_stream_get_state((i)->rec_stream) != PA_STREAM_READY) { \
397 if (i->rec_stream) {
398 pa_stream_disconnect(i->rec_stream);
399 pa_stream_unref(i->rec_stream);
566 if (i->rec_stream) {
567 pa_stream_unref(i->rec_stream);
568 i->rec_stream = NULL;
638 i->rec_stream = NULL;
814 if (s == i->rec_stream) {
815 n = pa_stream_readable_size(i->rec_stream);
858 if (!i->play_stream && !i->rec_stream)
913 if ((i->rec_stream) && (pa_stream_get_state(i->rec_stream) == PA_STREAM_READY)) {
914 n = pa_stream_readable_size(i->rec_stream);
928 if (pa_stream_peek(i->rec_stream, &data, &len) < 0) {
939 if (pa_stream_drop(i->rec_stream) < 0) {
964 if (pa_stream_drop(i->rec_stream) < 0) {
1012 } else if (s == i->rec_stream) {
1016 pa_stream_unref(i->rec_stream);
1017 i->rec_stream = NULL;
1081 if (!(i->rec_stream = pa_stream_new(i->context, stream_name(), &i->sample_spec, NULL))) {
1086 pa_stream_set_state_callback(i->rec_stream, stream_state_cb, i);
1087 pa_stream_set_read_callback(i->rec_stream, stream_request_cb, i);
1088 pa_stream_set_latency_update_callback(i->rec_stream, stream_latency_update_cb, i);
1099 if (pa_stream_connect_record(i->rec_stream, NULL, &attr, flags) < 0) {
1125 if (i->rec_stream) {
1126 pa_stream_disconnect(i->rec_stream);
1127 pa_stream_unref(i->rec_stream);
1128 i->rec_stream = NULL;
1157 if (!i->rec_stream) {
1960 else if (s == i->rec_stream)
2222 if (i->rec_stream) {
2223 if (dsp_cork(i, i->rec_stream, !((*(int*) argp) & PCM_ENABLE_INPUT)) < 0)
2270 if (i->rec_stream) {
2271 if ((k = pa_stream_readable_size(i->rec_stream)) == (size_t) -1)