mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
add modinfo support
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@191 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
11f0aae5d6
commit
a9ca9c4a3b
21 changed files with 390 additions and 57 deletions
|
|
@ -47,6 +47,10 @@
|
|||
#include "xmalloc.h"
|
||||
#include "log.h"
|
||||
|
||||
PA_MODULE_AUTHOR("Lennart Poettering")
|
||||
PA_MODULE_DESCRIPTION("OSS Sink/Source (mmap)")
|
||||
PA_MODULE_VERSION(PACKAGE_VERSION)
|
||||
|
||||
struct userdata {
|
||||
struct pa_sink *sink;
|
||||
struct pa_source *source;
|
||||
|
|
@ -214,7 +218,7 @@ static uint32_t sink_get_latency_cb(struct pa_sink *s) {
|
|||
return pa_bytes_to_usec(u->out_fill, &s->sample_spec);
|
||||
}
|
||||
|
||||
int pa_module_init(struct pa_core *c, struct pa_module*m) {
|
||||
int pa__init(struct pa_core *c, struct pa_module*m) {
|
||||
struct audio_buf_info info;
|
||||
struct userdata *u = NULL;
|
||||
const char *p;
|
||||
|
|
@ -362,7 +366,7 @@ int pa_module_init(struct pa_core *c, struct pa_module*m) {
|
|||
return 0;
|
||||
|
||||
fail:
|
||||
pa_module_done(c, m);
|
||||
pa__done(c, m);
|
||||
|
||||
if (ma)
|
||||
pa_modargs_free(ma);
|
||||
|
|
@ -370,7 +374,7 @@ fail:
|
|||
return -1;
|
||||
}
|
||||
|
||||
void pa_module_done(struct pa_core *c, struct pa_module*m) {
|
||||
void pa__done(struct pa_core *c, struct pa_module*m) {
|
||||
struct userdata *u;
|
||||
assert(c && m);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue