picky picky code practices :)

This commit is contained in:
Jeffrey Nelson 2013-02-05 21:00:59 -05:00
parent 7cf82fc012
commit e1f6bcce5e
6 changed files with 12 additions and 18 deletions

View file

@ -104,11 +104,10 @@ void jack_shutdown (void *arg)
int main (int argc, char *argv[])
{
jack_client_t *client;
char jack_client_name[] = "circlescope";
const char jack_client_name[] = "circlescope";
jack_status_t jack_status;
jack_options_t jack_options = JackNullOption;
if ((client = jack_client_open(jack_client_name, jack_options, &jack_status)) == 0) {
if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) {
fprintf (stderr, "jack server not running?\n");
return 1;
}

View file

@ -104,11 +104,10 @@ void jack_shutdown (void *arg)
int main (int argc, char *argv[])
{
jack_client_t *client;
char jack_client_name[] = "scope";
const char jack_client_name[] = "scope";
jack_status_t jack_status;
jack_options_t jack_options = JackNullOption;
if ((client = jack_client_open(jack_client_name, jack_options, &jack_status)) == 0) {
if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) {
fprintf (stderr, "jack server not running?\n");
return 1;
}

View file

@ -229,9 +229,8 @@ static int process (nframes_t nframes, void *arg)
int olInit(int buffer_count, int max_points)
{
int i;
char jack_client_name[] = "libol";
const char jack_client_name[] = "libol";
jack_status_t jack_status;
jack_options_t jack_options = JackNullOption;
if (buffer_count < 2)
return -1;
@ -261,7 +260,7 @@ int olInit(int buffer_count, int max_points)
frames[i].audio_r = malloc(frames[i].pmax * sizeof(float));
}
if ((client = jack_client_open(jack_client_name, jack_options, &jack_status)) == 0) {
if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) {
olLog ("jack server not running?\n");
return -1;
}

View file

@ -226,16 +226,15 @@ int main (int argc, char *argv[])
{
int retval;
jack_client_t *client;
char jack_client_name[] = "output";
const char jack_client_name[] = "output";
jack_status_t jack_status;
jack_options_t jack_options = JackNullOption;
QApplication app(argc, argv);
OutputSettings settings;
cfg = &settings.cfg;
if ((client = jack_client_open(jack_client_name, jack_options, &jack_status)) == 0) {
if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) {
fprintf (stderr, "jack server not running?\n");
return 1;
}

View file

@ -459,9 +459,8 @@ int main (int argc, char *argv[])
char **argvp = &argv[1];
char *fname;
jack_client_t *client;
char jack_client_name[] = "playilda";
const char jack_client_name[] = "playilda";
jack_status_t jack_status;
jack_options_t jack_options = JackNullOption;
struct stat st1, st2;
if (argc > 2 && !strcmp(argvp[0],"-s")) {
@ -481,7 +480,7 @@ int main (int argc, char *argv[])
pointrate = atoi(argvp[1]);
}
if ((client = jack_client_open(jack_client_name, jack_options, &jack_status)) == 0) {
if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) {
fprintf (stderr, "jack server not running?\n");
return 1;
}

View file

@ -231,11 +231,10 @@ void init_gl(int width, int height)
int main (int argc, char *argv[])
{
char jack_client_name[] = "simulator";
const char jack_client_name[] = "simulator";
jack_status_t jack_status;
jack_options_t jack_options = JackNullOption;
if ((client = jack_client_open(jack_client_name, jack_options, &jack_status)) == 0) {
if ((client = jack_client_open(jack_client_name, JackNullOption, &jack_status)) == 0) {
fprintf (stderr, "jack server not running?\n");
return 1;
}