Home
last modified time | relevance | path

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

12

/external/webrtc/modules/audio_device/include/
Daudio_device_defines.h82 : sample_rate_(0), in AudioParameters()
87 : sample_rate_(sample_rate), in AudioParameters()
92 sample_rate_ = sample_rate; in reset()
105 int sample_rate() const { return sample_rate_; } in sample_rate()
116 bool is_valid() const { return ((sample_rate_ > 0) && (channels_ > 0)); } in is_valid()
125 if (sample_rate_ == 0) in GetBufferSizeInMilliseconds()
127 return frames_per_buffer_ / (sample_rate_ / 1000.0); in GetBufferSizeInMilliseconds()
130 if (sample_rate_ == 0) in GetBufferSizeInSeconds()
132 return static_cast<double>(frames_per_buffer_) / (sample_rate_); in GetBufferSizeInSeconds()
149 int sample_rate_;
/external/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/common_audio/
Dwav_file.h63 int sample_rate() const override { return sample_rate_; } in sample_rate()
69 const int sample_rate_; variable
97 int sample_rate() const override { return sample_rate_; } in sample_rate()
103 int sample_rate_; variable
Dwav_file.cc77 RTC_CHECK(ReadWavHeader(&readable, &num_channels_, &sample_rate_, &format_, in WavReader()
196 : sample_rate_(sample_rate), in WavWriter()
206 RTC_CHECK(CheckWavParameters(num_channels_, sample_rate_, format_, in WavWriter()
284 WriteWavHeader(num_channels_, sample_rate_, format_, num_samples_written_, in Close()
/external/webrtc/modules/audio_processing/test/conversational_speech/
Dmock_wavreader.cc22 : sample_rate_(sample_rate), in MockWavReader()
25 ON_CALL(*this, SampleRate()).WillByDefault(Return(sample_rate_)); in MockWavReader()
Dmock_wavreader.h39 const int sample_rate_;
/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/openscreen/cast/standalone_sender/
Dsimulated_capturer.cc233 sample_rate_(sample_rate), in SimulatedAudioCapturer()
237 OSP_DCHECK_GT(sample_rate_, 0); in SimulatedAudioCapturer()
274 fake_output_frame->sample_rate = sample_rate_; in EnsureResamplerIsInitializedFor()
308 sample_rate_, input_sample_rate_, AV_ROUND_ZERO); in ProcessDecodedFrame()
Dsimulated_capturer.h155 const int sample_rate_; // Output sample rate. variable
/external/webrtc/modules/audio_coding/neteq/
Ddecision_logic.h75 rtc::CheckedDivExact(sample_rate_, 1000); in TargetLevelMs()
177 int sample_rate_; variable
Ddecision_logic.cc89 sample_rate_ = fs_hz; in SetSampleRate()
171 const uint32_t five_seconds_samples = static_cast<uint32_t>(5 * sample_rate_); in GetDecision()
366 target_level_window_ms_ / 2 * (sample_rate_ / 1000); in FuturePacketAvailable()
/external/webrtc/modules/audio_device/win/
Dcore_audio_base_win.cc398 HRESULT res = sample_rate_ ? core_audio_utility::GetPreferredAudioParameters( in Init()
399 audio_client.Get(), &params, *sample_rate_) in Init()
441 if (!sample_rate_) { in Init()
474 sample_rate_.has_value(), &endpoint_buffer_size_frames_))) { in Init()
486 requested_buffer_size, sample_rate_.has_value(), in Init()
Dcore_audio_base_win.h142 absl::optional<uint32_t> sample_rate_; variable
Dcore_audio_output_win.cc255 sample_rate_ = sample_rate; in SetSampleRate()
Dcore_audio_input_win.cc254 sample_rate_ = sample_rate; in SetSampleRate()
/external/webrtc/modules/audio_device/android/
Daudio_device_unittest.cc110 : file_size_in_bytes_(0), sample_rate_(sample_rate), file_pos_(0) { in FileAudioStream()
112 sample_rate_ = sample_rate; in FileAudioStream()
139 (kBytesPerSample * sample_rate_)); in file_size_in_seconds()
147 int sample_rate_; member in webrtc::FileAudioStream
/external/webrtc/sdk/android/native_unittests/audio_device/
Daudio_device_unittest.cc107 : file_size_in_bytes_(0), sample_rate_(sample_rate), file_pos_(0) { in FileAudioStream()
109 sample_rate_ = sample_rate; in FileAudioStream()
136 (kBytesPerSample * sample_rate_)); in file_size_in_seconds()
144 int sample_rate_; member in webrtc::jni::FileAudioStream
/external/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
/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
/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

12