Lines Matching refs:ok
53 bool ok = true;
96 ok &= encoder.set_verify(true);
97 ok &= encoder.set_compression_level(5);
98 ok &= encoder.set_channels(channels);
99 ok &= encoder.set_bits_per_sample(bps);
100 ok &= encoder.set_sample_rate(sample_rate);
101 ok &= encoder.set_total_samples_estimate(total_samples);
104 if(ok) {
115 ok = false;
120 ok = encoder.set_metadata(metadata, 2);
124 if(ok) {
128 ok = false;
133 if(ok) {
135 while(ok && left) {
139 ok = false;
149 ok = encoder.process_interleaved(pcm, need);
155 ok &= encoder.finish();
157 fprintf(stderr, "encoding: %s\n", ok? "succeeded" : "FAILED");