Browse Source

Cleanup netjack examples.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4620 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.8
sletz 10 years ago
parent
commit
e7f17f5010
2 changed files with 8 additions and 8 deletions
  1. +5
    -5
      example-clients/netmaster.c
  2. +3
    -3
      example-clients/netslave.c

+ 5
- 5
example-clients/netmaster.c View File

@@ -58,7 +58,7 @@ main (int argc, char *argv[])
int buffer_size = BUFFER_SIZE;
int sample_rate = SAMPLE_RATE;
int udp_port = DEFAULT_PORT;
char* multicast_ip = DEFAULT_MULTICAST_IP;
const char* multicast_ip = DEFAULT_MULTICAST_IP;
const char *options = "b:r:a:p:h";
int option_index;
int opt;
@@ -127,14 +127,14 @@ main (int argc, char *argv[])
#endif

// Allocate buffers
audio_input_buffer = calloc(result.audio_input, sizeof(float*));
audio_input_buffer = (float**)calloc(result.audio_input, sizeof(float*));
for (i = 0; i < result.audio_input; i++) {
audio_input_buffer[i] = calloc(buffer_size, sizeof(float));
audio_input_buffer[i] = (float*)calloc(buffer_size, sizeof(float));
}

audio_output_buffer = calloc(result.audio_output, sizeof(float*));
audio_output_buffer = (float**)calloc(result.audio_output, sizeof(float*));
for (i = 0; i < result.audio_output; i++) {
audio_output_buffer[i] = calloc(buffer_size, sizeof(float));
audio_output_buffer[i] = (float*)calloc(buffer_size, sizeof(float));
}

/*


+ 3
- 3
example-clients/netslave.c View File

@@ -80,10 +80,10 @@ main (int argc, char *argv[])
int audio_input = 2;
int audio_output = 2;
int udp_port = DEFAULT_PORT;
char* multicast_ip = DEFAULT_MULTICAST_IP;
const char *options = "C:P:a:p:h";
const char* multicast_ip = DEFAULT_MULTICAST_IP;
const char *options = "C:P:a:p:h";
int option_index;
int opt;
int opt;

struct option long_options[] =
{


Loading…
Cancel
Save