Lines Matching refs:ok
47 FLAC__bool ok = true;
90 ok &= FLAC__stream_encoder_set_verify(encoder, true);
91 ok &= FLAC__stream_encoder_set_compression_level(encoder, 5);
92 ok &= FLAC__stream_encoder_set_channels(encoder, channels);
93 ok &= FLAC__stream_encoder_set_bits_per_sample(encoder, bps);
94 ok &= FLAC__stream_encoder_set_sample_rate(encoder, sample_rate);
95 ok &= FLAC__stream_encoder_set_total_samples_estimate(encoder, total_samples);
98 if(ok) {
109 ok = false;
114 ok = FLAC__stream_encoder_set_metadata(encoder, metadata, 2);
118 if(ok) {
122 ok = false;
127 if(ok) {
129 while(ok && left) {
133 ok = false;
143 ok = FLAC__stream_encoder_process_interleaved(encoder, pcm, need);
149 ok &= FLAC__stream_encoder_finish(encoder);
151 fprintf(stderr, "encoding: %s\n", ok? "succeeded" : "FAILED");