summaryrefslogtreecommitdiffstats
path: root/polyp/source.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-01-27 16:25:31 +0000
committerLennart Poettering <lennart@poettering.net>2006-01-27 16:25:31 +0000
commitdd10c982414dfa8fbb9aeeeae61c68e4a6f081cc (patch)
tree8c05e4a7344570c2f4d40854baddeff7cc353709 /polyp/source.h
parent759721cbbc265cc6ce4c5dd9141e00ca67c8fe2d (diff)
Mega patch:
* implement inner loops using liboil * drop "typeid" stuff * add support for channel maps * add support for seperate volumes per channel * add support for hardware mixer settings (only module-oss implements this for now) * fix a lot of types for _t suffix git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@463 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/source.h')
-rw-r--r--polyp/source.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/polyp/source.h b/polyp/source.h
index c7f8d059..823a9424 100644
--- a/polyp/source.h
+++ b/polyp/source.h
@@ -31,7 +31,7 @@ typedef struct pa_source pa_source;
#include "memblock.h"
#include "memchunk.h"
#include "sink.h"
-#include "typeid.h"
+#include "channelmap.h"
#include "module.h"
#define PA_MAX_OUTPUTS_PER_SOURCE 16
@@ -39,28 +39,37 @@ typedef struct pa_source pa_source;
typedef enum pa_source_state {
PA_SOURCE_RUNNING,
PA_SOURCE_DISCONNECTED
-} pa_source_state;
+} pa_source_state_t;
struct pa_source {
int ref;
- pa_source_state state;
-
uint32_t index;
- pa_typeid_t typeid;
+ pa_core *core;
+ pa_source_state_t state;
- char *name, *description;
+ char *name, *description, *driver;
pa_module *owner;
- pa_core *core;
+
pa_sample_spec sample_spec;
+ pa_channel_map channel_map;
+
pa_idxset *outputs;
pa_sink *monitor_of;
-
+
void (*notify)(pa_source*source);
pa_usec_t (*get_latency)(pa_source *s);
+
void *userdata;
};
-pa_source* pa_source_new(pa_core *core, pa_typeid_t typeid, const char *name, int fail, const pa_sample_spec *spec);
+pa_source* pa_source_new(
+ pa_core *core,
+ const char *driver,
+ const char *name,
+ int namereg_fail,
+ const pa_sample_spec *spec,
+ const pa_channel_map *map);
+
void pa_source_disconnect(pa_source *s);
void pa_source_unref(pa_source *s);
pa_source* pa_source_ref(pa_source *c);