#include #include #include #include #include #define TABLE_SIZE 4096 #define FREQ 440.0f laaga_port_t *sin_output_port; unsigned int sample_rate; unsigned int phase = 0; unsigned int inc = 0; sample_t sin_tbl[TABLE_SIZE]; int process (nframes_t nframes, void *arg) { sample_t *out = (sample_t *) laaga_port_get_buffer(sin_output_port, nframes); unsigned int i; for(i=0; ishared->name, "ALSA I/O:Output 1")) { fprintf (stderr, "cannot connect output ports\n"); } sleep (5); printf ("done sleeping, now closing...\n"); laaga_client_close (client); exit (0); }