Lines Matching full:channels

189 void test_creation_arguments(const int channels, const int mapping_family)  in test_creation_arguments()  argument
202 int order_plus_one = (int)floor(sqrt((float)channels)); in test_creation_arguments()
203 int nondiegetic_channels = channels - order_plus_one * order_plus_one; in test_creation_arguments()
208 st_enc = opus_projection_ambisonics_encoder_create(Fs, channels, in test_creation_arguments()
226 st_dec = opus_projection_decoder_create(Fs, channels, streams, in test_creation_arguments()
240 fprintf(stderr, "Channels: %d, Family: %d\n", channels, mapping_family); in test_creation_arguments()
241 fprintf(stderr, "Order+1: %d, Non-diegetic Channels: %d\n", in test_creation_arguments()
249 void generate_music(short *buf, opus_int32 len, opus_int32 channels) in generate_music() argument
253 a = (opus_int32 *)malloc(sizeof(opus_int32) * channels); in generate_music()
254 b = (opus_int32 *)malloc(sizeof(opus_int32) * channels); in generate_music()
255 c = (opus_int32 *)malloc(sizeof(opus_int32) * channels); in generate_music()
256 d = (opus_int32 *)malloc(sizeof(opus_int32) * channels); in generate_music()
257 memset(a, 0, sizeof(opus_int32) * channels); in generate_music()
258 memset(b, 0, sizeof(opus_int32) * channels); in generate_music()
259 memset(c, 0, sizeof(opus_int32) * channels); in generate_music()
260 memset(d, 0, sizeof(opus_int32) * channels); in generate_music()
265 for(k=0;k<channels;k++) in generate_music()
274 buf[i*channels+k]=v>32767?32767:(v<-32768?-32768:v); in generate_music()
285 void test_encode_decode(opus_int32 bitrate, opus_int32 channels, in test_encode_decode() argument
304 buffer_in = (short *)malloc(sizeof(short) * BUFFER_SIZE * channels); in test_encode_decode()
305 buffer_out = (short *)malloc(sizeof(short) * BUFFER_SIZE * channels); in test_encode_decode()
307 st_enc = opus_projection_ambisonics_encoder_create(Fs, channels, in test_encode_decode()
311 "Couldn\'t create encoder with %d channels and mapping family %d.\n", in test_encode_decode()
312 channels, mapping_family); in test_encode_decode()
336 st_dec = opus_projection_decoder_create(Fs, channels, streams, coupled, in test_encode_decode()
342 "Couldn\'t create decoder with %d channels, %d streams " in test_encode_decode()
343 "and %d coupled streams.\n", channels, streams, coupled); in test_encode_decode()
347 generate_music(buffer_in, BUFFER_SIZE, channels); in test_encode_decode()
382 /* Test full range of channels in creation arguments. */ in main()