Lines Matching refs:flac_ip
99 InputPlugin flac_ip =
146 flac_ip.description = g_strdup_printf("Reference FLAC Player v%s", FLAC__VERSION_STRING);
147 return &flac_ip;
153 flac_ip.set_info((char*) title, length_in_msec, stream_data_.sample_rate * stream_data_.channels * stream_data_.bits_per_sample, stream_data_.sample_rate, stream_data_.channels);
332 if(flac_ip.output->open_audio(stream_data_.sample_format, stream_data_.sample_rate, stream_data_.channels) == 0) {
339 flac_ip.set_info(stream_data_.title, stream_data_.length_in_msec, stream_data_.sample_rate * stream_data_.channels * stream_data_.bits_per_sample, stream_data_.sample_rate, stream_data_.channels);
354 flac_ip.output->close_audio();
361 flac_ip.output->pause(p);
379 if(!stream_data_.is_playing || (stream_data_.eof && !flac_ip.output->buffer_playing()))
382 return flac_ip.output->output_time();
470 flac_ip.add_vis_pcm(flac_ip.output->written_time(), stream_data_.sample_format, stream_data_.channels, bytes, sample_buffer_start);
471 while(flac_ip.output->buffer_free() < (int)bytes && stream_data_.is_playing && stream_data_.seek_to_in_sec == -1)
474 flac_ip.output->write_audio(sample_buffer_start, bytes);
478 written_time = flac_ip.output->written_time();
504 flac_ip.output->flush(stream_data_.seek_to_in_sec * 1000);
505 bh_index_last_w = bh_index_last_o = flac_ip.output->output_time() / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE;
522 unsigned bh_index_o = flac_ip.output->output_time() / BITRATE_HIST_SEGMENT_MSEC % BITRATE_HIST_SIZE;
525 flac_ip.set_info(stream_data_.title, stream_data_.length_in_msec, bitrate_history_[bh_index_o], stream_data_.sample_rate, stream_data_.channels);
533 flac_ip.output->buffer_free();
534 flac_ip.output->buffer_free();