mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
more work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
98f41f1e70
commit
78f386ad45
19 changed files with 269 additions and 201 deletions
12
src/main.c
12
src/main.c
|
|
@ -3,6 +3,7 @@
|
|||
#include <stddef.h>
|
||||
#include <assert.h>
|
||||
#include <ltdl.h>
|
||||
#include <memblock.h>
|
||||
|
||||
#include "core.h"
|
||||
#include "mainloop.h"
|
||||
|
|
@ -10,7 +11,7 @@
|
|||
|
||||
static void signal_callback(struct mainloop_source *m, int sig, void *userdata) {
|
||||
mainloop_quit(mainloop_source_get_mainloop(m), -1);
|
||||
fprintf(stderr, "Got signal.\n");
|
||||
fprintf(stderr, "main: got signal.\n");
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
|
@ -29,10 +30,17 @@ int main(int argc, char *argv[]) {
|
|||
mainloop_source_new_signal(m, SIGINT, signal_callback, NULL);
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
module_load(c, "module-oss", NULL);
|
||||
module_load(c, "module-oss", "/dev/dsp1");
|
||||
module_load(c, "module-pipe-sink", NULL);
|
||||
module_load(c, "module-simple-protocol-tcp", NULL);
|
||||
|
||||
|
||||
fprintf(stderr, "main: mainloop entry.\n");
|
||||
while (mainloop_iterate(m, 1) == 0);
|
||||
/* fprintf(stderr, "main: %u blocks\n", n_blocks);*/
|
||||
fprintf(stderr, "main: mainloop exit.\n");
|
||||
|
||||
|
||||
mainloop_run(m);
|
||||
|
||||
core_free(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue