Home
last modified time | relevance | path

Searched refs:sample_rate_ (Results 1 – 18 of 18) sorted by relevance

/external/webrtc/webrtc/modules/audio_device/include/
Daudio_device_defines.h148 : sample_rate_(0), in AudioParameters()
153 : sample_rate_(sample_rate), in AudioParameters()
158 sample_rate_ = sample_rate; in reset()
171 int sample_rate() const { return sample_rate_; } in sample_rate()
182 bool is_valid() const { return ((sample_rate_ > 0) && (channels_ > 0)); } in is_valid()
191 if (sample_rate_ == 0) in GetBufferSizeInMilliseconds()
193 return frames_per_buffer_ / (sample_rate_ / 1000.0); in GetBufferSizeInMilliseconds()
196 if (sample_rate_ == 0) in GetBufferSizeInSeconds()
198 return static_cast<double>(frames_per_buffer_) / (sample_rate_); in GetBufferSizeInSeconds()
202 int sample_rate_;
/external/webrtc/webrtc/common_audio/resampler/
Dsinusoidal_linear_chirp_source.cc24 : sample_rate_(sample_rate), in SinusoidalLinearChirpSource()
30 double duration = static_cast<double>(total_samples_) / sample_rate_; in SinusoidalLinearChirpSource()
37 if (Frequency(current_index_) > 0.5 * sample_rate_) { in Run()
45 double t = (current_index_ - delay_samples_) / sample_rate_; in Run()
Dsinusoidal_linear_chirp_source.h43 int sample_rate_; variable
/external/webrtc/webrtc/common_audio/
Dwav_file.h53 int sample_rate() const override { return sample_rate_; } in sample_rate()
59 const int sample_rate_; variable
81 int sample_rate() const override { return sample_rate_; } in sample_rate()
87 int sample_rate_; variable
Dwav_file.cc56 RTC_CHECK(ReadWavHeader(&readable, &num_channels_, &sample_rate_, &format, in WavReader()
103 : sample_rate_(sample_rate), in WavWriter()
108 RTC_CHECK(CheckWavParameters(num_channels_, sample_rate_, kWavFormat, in WavWriter()
145 WriteWavHeader(header, num_channels_, sample_rate_, kWavFormat, in Close()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dmfcc_mel_filterbank.cc45 sample_rate_ = input_sample_rate; in Initialize()
53 if (sample_rate_ <= 0) { in Initialize()
87 0.5 * sample_rate_ / static_cast<double>(input_length_ - 1); in Initialize()
Dmfcc_mel_filterbank.h43 double sample_rate_; variable
/external/tensorflow/tensorflow/lite/experimental/microfrontend/ops/
Daudio_microfrontend_op.cc156 OP_REQUIRES_OK(ctx, ctx->GetAttr("sample_rate", &sample_rate_)); in AudioMicrofrontendOp()
218 int window_size = config_.window.size_ms * sample_rate_ / 1000; in Compute()
219 int window_step = config_.window.step_size_ms * sample_rate_ / 1000; in Compute()
235 FrontendPopulateState(&config_, &state, sample_rate_))) { in Compute()
288 int sample_rate_; member in tensorflow::AudioMicrofrontendOp
/external/tensorflow/tensorflow/core/kernels/
Dmfcc_mel_filterbank.cc46 sample_rate_ = input_sample_rate; in Initialize()
54 if (sample_rate_ <= 0) { in Initialize()
88 0.5 * sample_rate_ / static_cast<double>(input_length_ - 1); in Initialize()
Dmfcc_mel_filterbank.h43 double sample_rate_; variable
/external/webrtc/webrtc/modules/audio_device/
Dfine_audio_buffer.cc28 sample_rate_(sample_rate), in FineAudioBuffer()
29 samples_per_10_ms_(static_cast<size_t>(sample_rate_ * 10 / 1000)), in FineAudioBuffer()
Dfine_audio_buffer.h83 const int sample_rate_; variable
/external/webrtc/webrtc/modules/audio_device/ios/
Daudio_device_unittest_ios.cc110 : file_size_in_bytes_(0), sample_rate_(sample_rate), file_pos_(0) { in FileAudioStream()
112 sample_rate_ = sample_rate; in FileAudioStream()
139 file_size_in_bytes_ / (kBytesPerSample * sample_rate_)); in file_size_in_seconds()
147 int sample_rate_; member in webrtc::FileAudioStream
/external/webrtc/webrtc/modules/audio_device/android/
Daudio_device_unittest.cc107 sample_rate_(sample_rate), in FileAudioStream()
110 sample_rate_ = sample_rate; in FileAudioStream()
138 file_size_in_bytes_ / (kBytesPerSample * sample_rate_)); in file_size_in_seconds()
146 int sample_rate_; member in webrtc::FileAudioStream
/external/libvpx/libvpx/third_party/libwebm/mkvmuxer/
Dmkvmuxer.h856 void set_sample_rate(double sample_rate) { sample_rate_ = sample_rate; } in set_sample_rate()
857 double sample_rate() const { return sample_rate_; } in sample_rate()
863 double sample_rate_; variable
Dmkvmuxer.cc1669 : Track(seed), bit_depth_(0), channels_(1), sample_rate_(0.0) {} in AudioTrack()
1677 static_cast<float>(sample_rate_)); in PayloadSize()
1694 static_cast<float>(sample_rate_)); in Write()
1709 static_cast<float>(sample_rate_))) in Write()
/external/libaom/libaom/third_party/libwebm/mkvmuxer/
Dmkvmuxer.h856 void set_sample_rate(double sample_rate) { sample_rate_ = sample_rate; } in set_sample_rate()
857 double sample_rate() const { return sample_rate_; } in sample_rate()
863 double sample_rate_; variable
Dmkvmuxer.cc1669 : Track(seed), bit_depth_(0), channels_(1), sample_rate_(0.0) {} in AudioTrack()
1677 static_cast<float>(sample_rate_)); in PayloadSize()
1694 static_cast<float>(sample_rate_)); in Write()
1709 static_cast<float>(sample_rate_))) in Write()