Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a help option. not that helpful but tells you what port it's list…
…ening on
- Loading branch information
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
#ifndef _DIRTCONFIGH_ | ||
#define _DIRTCONFIGH_ | ||
|
||
//#define FEEDBACK | ||
//#define INPUT | ||
#define OSC_PORT "7771" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
#include <stdio.h> | ||
|
||
#include <unistd.h> | ||
#include <string.h> | ||
|
||
#include "jack.h" | ||
#include "audio.h" | ||
#include "server.h" | ||
|
||
int main (int argc, char **argv) { | ||
printf("init audio\n"); | ||
if (argc > 1 && strncmp(argv[1], "-h", 2) == 0) { | ||
printf("Dirt - a software sampler, which listens for\n" | ||
"OpenSoundControl messages on port %s.\n" | ||
"Mainly used with Tidal http://yaxu.org/tidal/\n" | ||
"Released as free software under the terms of the\n" | ||
"GNU Public License version 3.0 and later.\n", | ||
OSC_PORT | ||
); | ||
return(0); | ||
} | ||
|
||
fprintf(stderr, "init audio\n"); | ||
audio_init(); | ||
printf("init osc\n"); | ||
|
||
fprintf(stderr, "init open sound control\n"); | ||
server_init(); | ||
|
||
sleep(-1); | ||
return(0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters