Lines Matching refs:rc
51 int rc;
59 rc = AudioSetInputFormat(SAMPLING_RATE, N_CHANNELS_PER_TUPLE);
60 if (rc != 0)
62 printf("ERROR: AudioSetInputFormat() returns %d\n", rc);
81 rc = AudioSetInputFormat(SAMPLING_RATE, N_CHANNELS_PER_TUPLE);
82 if (rc != 0)
84 printf("ERROR: AudioSetInputFormat() returns %d\n", rc);
93 rc = AudioOpen();
94 if (rc < 0)
96 printf("ERROR: AudioOpen() returns %d (device handle/ID)\n", rc);
103 rc = AudioRead(&(recordedSamples[i]), N_FRAMES_PER_BUFFER);
104 if (rc > 0)
105 i += (rc * N_TUPLES_PER_FRAME * N_CHANNELS_PER_TUPLE);
107 printf("ERROR: AudioRead() returns %d\n", rc);
110 rc = AudioClose();
111 if (rc != 0)
113 printf("ERROR: AudioClose() returns %d\n", rc);