Lines Matching refs:sample_buffer_last_
130 static unsigned sample_buffer_first_, sample_buffer_last_;
276 sample_buffer_first_ = sample_buffer_last_ = 0;
443 while(sample_buffer_last_ - sample_buffer_first_ < SAMPLES_PER_WRITE) {
446 s = sample_buffer_last_ - sample_buffer_first_;
457 blocksize = sample_buffer_last_ - sample_buffer_first_ - s;
462 if(sample_buffer_last_ - sample_buffer_first_ > 0) {
463 const unsigned n = min(sample_buffer_last_ - sample_buffer_first_, SAMPLES_PER_WRITE);
482 decode_position = decode_position_frame - (double)(sample_buffer_last_ - sample_buffer_first_) * (double)(decode_position_frame - decode_position_frame_last) / (double)blocksize;
509 sample_buffer_first_ = sample_buffer_last_ = 0;
516 sample_buffer_first_ = sample_buffer_last_ = 0;
605 if((sample_buffer_last_ + wide_samples) > (SAMPLE_BUFFER_SIZE / (channels * stream_data->sample_format_bytes_per_sample))) {
606 memmove(sample_buffer_, sample_buffer_ + sample_buffer_first_ * channels * stream_data->sample_format_bytes_per_sample, (sample_buffer_last_ - sample_buffer_first_) * channels * stream_data->sample_format_bytes_per_sample);
607 sample_buffer_last_ -= sample_buffer_first_;
610 sample_buffer_start = sample_buffer_ + sample_buffer_last_ * channels * stream_data->sample_format_bytes_per_sample;
648 sample_buffer_last_ += wide_samples;