Lines Matching defs:core

41 #include <pulsecore/core-util.h>
45 #include <pulsecore/core-subscribe.h>
178 pa_core *core,
189 pa_assert(core);
196 if (!(name = pa_namereg_register(core, data->name, PA_NAMEREG_SINK, s, data->namereg_fail))) {
204 if (pa_hook_fire(&core->hooks[PA_CORE_HOOK_SINK_NEW], data) < 0) {
206 pa_namereg_unregister(core, name);
251 if (pa_hook_fire(&core->hooks[PA_CORE_HOOK_SINK_FIXATE], data) < 0) {
253 pa_namereg_unregister(core, name);
260 s->core = core;
280 s->alternate_sample_rate = s->core->alternate_sample_rate;
285 s->avoid_resampling = s->core->avoid_resampling;
329 &core->silence_cache,
330 core->mempool,
355 s->thread_info.volume_change_safety_margin = core->deferred_volume_safety_margin_usec;
356 s->thread_info.volume_change_extra_delay = core->deferred_volume_extra_delay_usec;
360 pa_assert_se(pa_idxset_put(core->sinks, s, &s->index) >= 0);
388 s->monitor_source = pa_source_new(core, &source_data,
505 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_STATE_CHANGED], s);
506 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
558 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
579 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
605 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
614 enable = enable && s->core->flat_volumes;
626 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
647 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
736 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_NEW, s->index);
737 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_PUT], s);
744 pa_core_update_default_sink(s->core);
746 pa_core_move_streams_to_newly_available_preferred_sink(s->core, s);
769 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_UNLINK], s);
772 pa_namereg_unregister(s->core, s->name);
773 pa_idxset_remove_by_data(s->core->sinks, s, NULL);
775 pa_core_update_default_sink(s->core);
777 if (linked && s->core->rescue_streams)
778 pa_sink_move_streams_to_default_sink(s->core, s, false);
805 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_REMOVE, s->index);
806 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_UNLINK_POST], s);
882 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
883 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_FLAGS_CHANGED], s);
1266 block_size_max = pa_mempool_block_size_max(s->core->mempool);
1295 pa_silence_memchunk_get(&s->core->silence_cache,
1296 s->core->mempool,
1306 result->memblock = pa_memblock_new(s->core->mempool, length);
1349 block_size_max = pa_mempool_block_size_max(s->core->mempool);
1739 * pa_sink_reconfigure(). This function sets the PA core objects to
2392 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
2393 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_MUTE_CHANGED], s);
2446 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_PROPLIST_CHANGED], s);
2447 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
2482 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
2483 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_PROPLIST_CHANGED], s);
2689 * the core than many times in the modules? */
2704 * the core than many times in the modules? */
3453 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_PORT_LATENCY_OFFSET_CHANGED], s);
3512 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
3522 pa_core_update_default_sink(s->core);
3524 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_PORT_CHANGED], s);
4001 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
4019 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
4043 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK|PA_SUBSCRIPTION_EVENT_CHANGE, s->index);
4044 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_VOLUME_CHANGED], s);
4047 void pa_sink_move_streams_to_default_sink(pa_core *core, pa_sink *old_sink, bool default_sink_changed) {
4051 pa_assert(core);
4054 if (core->state == PA_CORE_SHUTDOWN)
4057 if (core->default_sink == NULL || core->default_sink->unlink_requested)
4060 if (old_sink == core->default_sink)
4078 if (!pa_sink_input_may_move_to(i, core->default_sink))
4083 i->index, pa_strnull(pa_proplist_gets(i->proplist, PA_PROP_APPLICATION_NAME)), core->default_sink->name);
4086 i->index, pa_strnull(pa_proplist_gets(i->proplist, PA_PROP_APPLICATION_NAME)), core->default_sink->name);
4088 pa_sink_input_move_to(i, core->default_sink, false);