Lines Matching refs:channels_
50 channels_(AudioPacket::CHANNELS_STEREO),
65 encoder_ = opus_encoder_create(kOpusSamplingRate, channels_,
79 new char[kFrameSamples * kBytesPerSample * channels_]);
83 channels_,
88 resampler_bus_ = media::AudioBus::Create(channels_, kFrameSamples);
96 new int16[leftover_buffer_size_ * channels_]);
109 if (packet->channels() != channels_ ||
113 channels_ = packet->channels();
116 if (channels_ <= 0 || channels_ > 2 ||
119 << channels_ << " channels with "
134 kBytesPerSample / channels_;
139 resampling_data_pos_ += audio_bus->frames() * kBytesPerSample * channels_;
154 int samples_in_packet = packet->data(0).size() / kBytesPerSample / channels_;
162 encoded_packet->set_channels(channels_);
175 memcpy(leftover_buffer_.get() + leftover_samples_ * channels_,
176 next_sample, samples_to_copy * kBytesPerSample * channels_);
186 resampling_data_size_ = samples_wanted * channels_ * kBytesPerSample;
189 samples_consumed = resampling_data_pos_ / channels_ / kBytesPerSample;
200 data->resize(kFrameSamples * kBytesPerSample * channels_);
219 next_sample += samples_consumed * channels_;
224 leftover_buffer_.get() + samples_consumed * channels_,
225 leftover_samples_ * channels_ * kBytesPerSample);
232 memmove(leftover_buffer_.get() + leftover_samples_ * channels_,
233 next_sample, samples_in_packet * kBytesPerSample * channels_);