mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
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
This commit is contained in:
parent
759721cbbc
commit
dd10c98241
114 changed files with 2584 additions and 1329 deletions
|
|
@ -50,8 +50,8 @@ struct pa_io_event {
|
|||
pa_mainloop *mainloop;
|
||||
int dead;
|
||||
int fd;
|
||||
pa_io_event_flags events;
|
||||
void (*callback) (pa_mainloop_api*a, pa_io_event *e, int fd, pa_io_event_flags f, void *userdata);
|
||||
pa_io_event_flags_t events;
|
||||
void (*callback) (pa_mainloop_api*a, pa_io_event *e, int fd, pa_io_event_flags_t f, void *userdata);
|
||||
struct pollfd *pollfd;
|
||||
void *userdata;
|
||||
void (*destroy_callback) (pa_mainloop_api*a, pa_io_event *e, void *userdata);
|
||||
|
|
@ -91,7 +91,13 @@ struct pa_mainloop {
|
|||
};
|
||||
|
||||
/* IO events */
|
||||
static pa_io_event* mainloop_io_new(pa_mainloop_api*a, int fd, pa_io_event_flags events, void (*callback) (pa_mainloop_api*a, pa_io_event *e, int fd, pa_io_event_flags events, void *userdata), void *userdata) {
|
||||
static pa_io_event* mainloop_io_new(
|
||||
pa_mainloop_api*a,
|
||||
int fd,
|
||||
pa_io_event_flags_t events,
|
||||
void (*callback) (pa_mainloop_api*a, pa_io_event *e, int fd, pa_io_event_flags_t events, void *userdata),
|
||||
void *userdata) {
|
||||
|
||||
pa_mainloop *m;
|
||||
pa_io_event *e;
|
||||
|
||||
|
|
@ -135,7 +141,7 @@ static pa_io_event* mainloop_io_new(pa_mainloop_api*a, int fd, pa_io_event_flags
|
|||
return e;
|
||||
}
|
||||
|
||||
static void mainloop_io_enable(pa_io_event *e, pa_io_event_flags events) {
|
||||
static void mainloop_io_enable(pa_io_event *e, pa_io_event_flags_t events) {
|
||||
assert(e && e->mainloop);
|
||||
|
||||
e->events = events;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue