mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-13 13:29:58 -05:00
commit liboil porting changes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/liboil-test@344 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
0c9873e5b3
commit
e1f008f2a3
23 changed files with 917 additions and 232 deletions
42
polyp/sink.h
42
polyp/sink.h
|
|
@ -30,38 +30,51 @@ struct pa_sink;
|
|||
#include "sample.h"
|
||||
#include "idxset.h"
|
||||
#include "source.h"
|
||||
#include "typeid.h"
|
||||
#include "channelmap.h"
|
||||
|
||||
#define PA_MAX_INPUTS_PER_SINK 6
|
||||
|
||||
enum pa_sink_state {
|
||||
typedef enum {
|
||||
PA_SINK_RUNNING,
|
||||
PA_SINK_DISCONNECTED
|
||||
};
|
||||
} pa_sink_state_t;
|
||||
|
||||
typedef enum {
|
||||
PA_MIXER_AUTO,
|
||||
PA_MIXER_SOFTWARE,
|
||||
PA_MIXER_HARDWARE
|
||||
} pa_mixer_t;
|
||||
|
||||
struct pa_sink {
|
||||
int ref;
|
||||
enum pa_sink_state state;
|
||||
|
||||
uint32_t index;
|
||||
pa_typeid_t typeid;
|
||||
|
||||
char *name, *description;
|
||||
struct pa_module *owner;
|
||||
struct pa_core *core;
|
||||
pa_sink_state_t state;
|
||||
|
||||
char *name, *description, *driver;
|
||||
struct pa_sample_spec sample_spec;
|
||||
struct pa_channel_map channel_map;
|
||||
struct pa_idxset *inputs;
|
||||
|
||||
struct pa_module *owner;
|
||||
struct pa_source *monitor_source;
|
||||
|
||||
pa_volume_t volume;
|
||||
struct pa_cvolume hw_volume, sw_volume;
|
||||
|
||||
void (*notify)(struct pa_sink*sink);
|
||||
pa_usec_t (*get_latency)(struct pa_sink *s);
|
||||
void (*set_volume)(struct pa_sink *s);
|
||||
void (*get_volume)(struct pa_sink *s);
|
||||
|
||||
void *userdata;
|
||||
};
|
||||
|
||||
struct pa_sink* pa_sink_new(struct pa_core *core, pa_typeid_t typeid, const char *name, int fail, const struct pa_sample_spec *spec);
|
||||
struct pa_sink* pa_sink_new(
|
||||
struct pa_core *core,
|
||||
const char *name,
|
||||
const char *driver,
|
||||
int fail,
|
||||
const struct pa_sample_spec *spec,
|
||||
const struct pa_channel_map *map);
|
||||
|
||||
void pa_sink_disconnect(struct pa_sink* s);
|
||||
void pa_sink_unref(struct pa_sink*s);
|
||||
struct pa_sink* pa_sink_ref(struct pa_sink *s);
|
||||
|
|
@ -77,6 +90,7 @@ void pa_sink_notify(struct pa_sink*s);
|
|||
|
||||
void pa_sink_set_owner(struct pa_sink *sink, struct pa_module *m);
|
||||
|
||||
void pa_sink_set_volume(struct pa_sink *sink, pa_volume_t volume);
|
||||
void pa_sink_set_volume(struct pa_sink *sink, pa_mixer_t m, const struct pa_cvolume *volume);
|
||||
const struct pa_cvolume *pa_sink_get_volume(struct pa_sink *sink, pa_mixer_t m);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue