Lines Matching refs:PA_STREAM_PLAYBACK
1099 if (s->direction == PA_STREAM_PLAYBACK) {
1170 if ((s->context->version >= 21 && s->direction == PA_STREAM_PLAYBACK)
1232 pa_assert(direction == PA_STREAM_PLAYBACK || direction == PA_STREAM_RECORD);
1267 PA_CHECK_VALIDITY(s->context, !sync_stream || (direction == PA_STREAM_PLAYBACK && sync_stream->direction == PA_STREAM_PLAYBACK), PA_ERR_INVALID);
1305 dev = s->direction == PA_STREAM_PLAYBACK ? s->context->conf->default_sink : s->context->conf->default_source;
1309 (uint32_t) (s->direction == PA_STREAM_PLAYBACK ? PA_COMMAND_CREATE_PLAYBACK_STREAM : PA_COMMAND_CREATE_RECORD_STREAM),
1336 if (s->direction == PA_STREAM_PLAYBACK) {
1364 if (s->direction == PA_STREAM_PLAYBACK)
1381 if (s->direction == PA_STREAM_PLAYBACK)
1389 if (s->direction == PA_STREAM_PLAYBACK)
1396 if (s->context->version >= 17 && s->direction == PA_STREAM_PLAYBACK)
1399 if (s->context->version >= 18 && s->direction == PA_STREAM_PLAYBACK)
1402 if ((s->context->version >= 21 && s->direction == PA_STREAM_PLAYBACK)
1439 return create_stream(PA_STREAM_PLAYBACK, s, dev, attr, flags, volume, sync_stream);
1464 PA_CHECK_VALIDITY(s->context, s->direction == PA_STREAM_PLAYBACK || s->direction == PA_STREAM_UPLOAD, PA_ERR_BADSTATE);
1498 PA_CHECK_VALIDITY(s->context, s->direction == PA_STREAM_PLAYBACK || s->direction == PA_STREAM_UPLOAD, PA_ERR_BADSTATE);
1526 PA_CHECK_VALIDITY(s->context, s->direction == PA_STREAM_PLAYBACK || s->direction == PA_STREAM_UPLOAD, PA_ERR_BADSTATE);
1528 PA_CHECK_VALIDITY(s->context, s->direction == PA_STREAM_PLAYBACK || (seek == PA_SEEK_RELATIVE && offset == 0), PA_ERR_INVALID);
1609 if (s->direction == PA_STREAM_PLAYBACK) {
1750 PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->direction == PA_STREAM_PLAYBACK, PA_ERR_BADSTATE);
1779 pa_assert(s->direction != PA_STREAM_PLAYBACK || !s->timing_info.read_index_corrupt);
1782 if (s->direction == PA_STREAM_PLAYBACK) {
1877 o->stream->direction == PA_STREAM_PLAYBACK)
1902 if (o->stream->direction == PA_STREAM_PLAYBACK)
1924 if (o->stream->direction == PA_STREAM_PLAYBACK) {
1981 if (o->stream->direction == PA_STREAM_PLAYBACK && o->context->version >= 13) {
2003 if ((o->stream->direction == PA_STREAM_PLAYBACK && !i->read_index_corrupt) ||
2050 if (s->direction == PA_STREAM_PLAYBACK) {
2061 (uint32_t) (s->direction == PA_STREAM_PLAYBACK ? PA_COMMAND_GET_PLAYBACK_LATENCY : PA_COMMAND_GET_RECORD_LATENCY),
2069 if (s->direction == PA_STREAM_PLAYBACK) {
2125 (uint32_t) (s->direction == PA_STREAM_PLAYBACK ? PA_COMMAND_DELETE_PLAYBACK_STREAM :
2358 (uint32_t) (s->direction == PA_STREAM_PLAYBACK ? PA_COMMAND_CORK_PLAYBACK_STREAM : PA_COMMAND_CORK_RECORD_STREAM),
2410 if (!(o = stream_send_simple_command(s, (uint32_t) (s->direction == PA_STREAM_PLAYBACK ? PA_COMMAND_FLUSH_PLAYBACK_STREAM : PA_COMMAND_FLUSH_RECORD_STREAM), cb, userdata)))
2413 if (s->direction == PA_STREAM_PLAYBACK) {
2446 PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->direction == PA_STREAM_PLAYBACK, PA_ERR_BADSTATE);
2472 PA_CHECK_VALIDITY_RETURN_NULL(s->context, s->direction == PA_STREAM_PLAYBACK, PA_ERR_BADSTATE);
2535 PA_CHECK_VALIDITY(s->context, s->direction != PA_STREAM_PLAYBACK || !s->timing_info.read_index_corrupt, PA_ERR_NODATA);
2593 PA_CHECK_VALIDITY(s->context, s->direction != PA_STREAM_PLAYBACK || !s->timing_info.write_index_corrupt, PA_ERR_NODATA);
2599 if (s->direction == PA_STREAM_PLAYBACK)
2609 if (s->direction == PA_STREAM_PLAYBACK)
2685 if (o->stream->direction == PA_STREAM_PLAYBACK) {
2765 if (s->direction == PA_STREAM_PLAYBACK)