mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
allow hooking into the process of creating playback streams. To implement this I modified the pa_sink_input_new() signature to take a pa_sink_input_new_data structure instead of direct arguments.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1237 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b5cbea940e
commit
a621d90285
16 changed files with 291 additions and 133 deletions
|
|
@ -22,17 +22,21 @@
|
|||
USA.
|
||||
***/
|
||||
|
||||
typedef struct pa_core pa_core;
|
||||
|
||||
#include <pulse/mainloop-api.h>
|
||||
#include <pulse/sample.h>
|
||||
|
||||
#include <pulsecore/idxset.h>
|
||||
#include <pulsecore/hashmap.h>
|
||||
#include <pulsecore/memblock.h>
|
||||
#include <pulsecore/resampler.h>
|
||||
#include <pulsecore/queue.h>
|
||||
#include <pulsecore/core-subscribe.h>
|
||||
#include <pulsecore/llist.h>
|
||||
#include <pulsecore/hook-list.h>
|
||||
|
||||
typedef struct pa_core pa_core;
|
||||
|
||||
#include <pulsecore/core-subscribe.h>
|
||||
#include <pulsecore/sink-input.h>
|
||||
|
||||
/* The core structure of PulseAudio. Every PulseAudio daemon contains
|
||||
* exactly one of these. It is used for storing kind of global
|
||||
|
|
@ -75,6 +79,9 @@ struct pa_core {
|
|||
pa_resample_method_t resample_method;
|
||||
|
||||
int is_system_instance;
|
||||
|
||||
/* hooks */
|
||||
pa_hook hook_sink_input_new, hook_sink_input_disconnect;
|
||||
};
|
||||
|
||||
pa_core* pa_core_new(pa_mainloop_api *m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue