Lines Matching refs:state

116 static int sink_set_state_in_main_thread_cb(pa_sink *s, pa_sink_state_t state, pa_suspend_cause_t suspend_cause) {
122 if (!PA_SINK_IS_LINKED(state)) {
126 if (state == PA_SINK_RUNNING) {
165 if (!PA_SOURCE_IS_LINKED(u->source->thread_info.state) ||
166 !PA_SOURCE_OUTPUT_IS_LINKED(u->source_output->thread_info.state)) {
190 static int source_set_state_in_main_thread_cb(pa_source *s, pa_source_state_t state, pa_suspend_cause_t suspend_cause) {
196 if (!PA_SOURCE_IS_LINKED(state) ||
197 !PA_SOURCE_OUTPUT_IS_LINKED(u->source_output->state))
200 pa_source_output_cork(u->source_output, state == PA_SOURCE_SUSPENDED);
211 if (!PA_SOURCE_IS_LINKED(u->source->thread_info.state) ||
212 !PA_SOURCE_OUTPUT_IS_LINKED(u->source_output->thread_info.state))
228 if (!PA_SOURCE_IS_LINKED(s->state) ||
229 !PA_SOURCE_OUTPUT_IS_LINKED(u->source_output->state))
242 if (!PA_SOURCE_IS_LINKED(s->state) ||
243 !PA_SOURCE_OUTPUT_IS_LINKED(u->source_output->state))
257 if (!PA_SOURCE_IS_LINKED(u->source->thread_info.state))
260 if (!PA_SOURCE_OUTPUT_IS_LINKED(u->source_output->thread_info.state)) {
269 if (u->sink && (u->sink->thread_info.state == PA_SINK_RUNNING)) {
354 if (PA_SOURCE_IS_LINKED(u->source->thread_info.state))
388 if (PA_SOURCE_IS_LINKED(u->source->thread_info.state))
400 if (PA_SOURCE_IS_LINKED(u->source->thread_info.state))
406 static void source_output_state_change_cb(pa_source_output *o, pa_source_output_state_t state) {
414 if (PA_SOURCE_OUTPUT_IS_LINKED(state) && o->thread_info.state == PA_SOURCE_OUTPUT_INIT && o->source) {