Lines Matching refs:play_stream
87 pa_stream *play_stream; member
267 !(i)->play_stream || pa_stream_get_state((i)->play_stream) != PA_STREAM_READY) { \
392 if (i->play_stream) { in fd_info_free()
393 pa_stream_disconnect(i->play_stream); in fd_info_free()
394 pa_stream_unref(i->play_stream); in fd_info_free()
561 if (i->play_stream) { in atfork_child()
562 pa_stream_unref(i->play_stream); in atfork_child()
563 i->play_stream = NULL; in atfork_child()
637 i->play_stream = NULL; in fd_info_new()
801 if (s == i->play_stream) { in stream_request_cb()
802 n = pa_stream_writable_size(i->play_stream); in stream_request_cb()
858 if (!i->play_stream && !i->rec_stream) in fd_info_copy_data()
861 if ((i->play_stream) && (pa_stream_get_state(i->play_stream) == PA_STREAM_READY)) { in fd_info_copy_data()
862 n = pa_stream_writable_size(i->play_stream); in fd_info_copy_data()
894 … if (pa_stream_write(i->play_stream, i->buf, to_write, NULL, 0LL, PA_SEEK_RELATIVE) < 0) { in fd_info_copy_data()
1006 if (s == i->play_stream) { in stream_state_cb()
1010 pa_stream_unref(i->play_stream); in stream_state_cb()
1011 i->play_stream = NULL; in stream_state_cb()
1037 if (!(i->play_stream = pa_stream_new(i->context, stream_name(), &i->sample_spec, NULL))) { in create_playback_stream()
1042 pa_stream_set_state_callback(i->play_stream, stream_state_cb, i); in create_playback_stream()
1043 pa_stream_set_write_callback(i->play_stream, stream_request_cb, i); in create_playback_stream()
1044 pa_stream_set_latency_update_callback(i->play_stream, stream_latency_update_cb, i); in create_playback_stream()
1057 if (pa_stream_connect_playback(i->play_stream, NULL, &attr, flags, NULL, NULL) < 0) { in create_playback_stream()
1118 if (i->play_stream) { in free_streams()
1119 pa_stream_disconnect(i->play_stream); in free_streams()
1120 pa_stream_unref(i->play_stream); in free_streams()
1121 i->play_stream = NULL; in free_streams()
1147 if (!i->play_stream) { in io_event_cb()
1868 if (!i->play_stream) in dsp_drain()
1873 if (!(o = pa_stream_drain(i->play_stream, stream_success_cb, i))) { in dsp_drain()
1906 if (!i->play_stream) in dsp_trigger()
1916 if (!(o = pa_stream_trigger(i->play_stream, stream_success_cb, i))) { in dsp_trigger()
1958 if (s == i->play_stream) in dsp_cork()
2133 if (pa_stream_get_latency(i->play_stream, &usec, NULL) >= 0) { in dsp_ioctl()
2213 if (i->play_stream) { in dsp_ioctl()
2214 if (dsp_cork(i, i->play_stream, !((*(int*) argp) & PCM_ENABLE_OUTPUT)) < 0) in dsp_ioctl()
2253 if (i->play_stream) { in dsp_ioctl()
2254 if ((k = pa_stream_writable_size(i->play_stream)) == (size_t) -1) in dsp_ioctl()
2343 if (pa_stream_get_time(i->play_stream, &usec) >= 0) { in dsp_ioctl()