Home
last modified time | relevance | path

Searched refs:kSampleRate (Results 1 – 20 of 20) sorted by relevance

/external/webrtc/audio/
Daudio_state_unittest.cc30 constexpr int kSampleRate = 16000; variable
61 int PreferredSampleRate() const /*override*/ { return kSampleRate; } in PreferredSampleRate()
143 constexpr int kSampleRate = 16000; in TEST() local
145 auto audio_data = Create10msTestData(kSampleRate, kNumChannels); in TEST()
148 &audio_data[0], kSampleRate / 100, kNumChannels * 2, kNumChannels, in TEST()
149 kSampleRate, 0, 0, 0, false, new_mic_level); in TEST()
199 constexpr int kSampleRate = 16000; in TEST() local
201 auto audio_data = Create10msTestData(kSampleRate, kNumChannels); in TEST()
204 &audio_data[0], kSampleRate / 100, kNumChannels * 2, kNumChannels, in TEST()
205 kSampleRate, 5, 0, 0, true, new_mic_level); in TEST()
[all …]
/external/webrtc/modules/audio_coding/neteq/
Dtime_stretch_unittest.cc32 const int kSampleRate = 8000; in TEST() local
33 const int kOverlapSamples = 5 * kSampleRate / 8000; in TEST()
35 Accelerate accelerate(kSampleRate, kNumChannels, bgn); in TEST()
36 PreemptiveExpand preemptive_expand(kSampleRate, kNumChannels, bgn, in TEST()
41 const int kSampleRate = 8000; in TEST() local
42 const int kOverlapSamples = 5 * kSampleRate / 8000; in TEST()
47 accelerate_factory.Create(kSampleRate, kNumChannels, bgn); in TEST()
53 kSampleRate, kNumChannels, bgn, kOverlapSamples); in TEST()
/external/tensorflow/tensorflow/lite/experimental/microfrontend/lib/
Dfilterbank_test.cc24 const int kSampleRate = 1000; variable
54 kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST()
65 kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST()
76 kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST()
93 kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST()
110 kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST()
127 kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST()
147 kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST()
185 kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST()
203 kSampleRate, kSpectrumSize)); in TF_LITE_MICRO_TEST()
Dwindow_test.cc22 const int kSampleRate = 1000; variable
49 WindowPopulateState(&config.config_, &state, kSampleRate)); in TF_LITE_MICRO_TEST()
68 WindowPopulateState(&config.config_, &state, kSampleRate)); in TF_LITE_MICRO_TEST()
87 WindowPopulateState(&config.config_, &state, kSampleRate)); in TF_LITE_MICRO_TEST()
110 WindowPopulateState(&config.config_, &state, kSampleRate)); in TF_LITE_MICRO_TEST()
126 WindowPopulateState(&config.config_, &state, kSampleRate)); in TF_LITE_MICRO_TEST()
153 WindowPopulateState(&config.config_, &state, kSampleRate)); in TF_LITE_MICRO_TEST()
Dfrontend_test.cc22 const int kSampleRate = 1000; variable
63 FrontendPopulateState(&config.config_, &state, kSampleRate)); in TF_LITE_MICRO_TEST()
84 FrontendPopulateState(&config.config_, &state, kSampleRate)); in TF_LITE_MICRO_TEST()
109 FrontendPopulateState(&config.config_, &state, kSampleRate)); in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/core/kernels/
Dsummary_audio_op_test.cc79 const float kSampleRate = 44100.0f; in TEST_F() local
88 AddInputFromArray<float>(TensorShape({}), {kSampleRate}); in TEST_F()
113 const float kSampleRate = 44100.0f; in TEST_F() local
122 AddInputFromArray<float>(TensorShape({}), {kSampleRate}); in TEST_F()
/external/webrtc/modules/audio_device/
Dfine_audio_buffer_unittest.cc30 const int kSampleRate = 44100; variable
32 const int kSamplesPer10Ms = kSampleRate * 10 / 1000;
98 audio_device_buffer.SetPlayoutSampleRate(kSampleRate); in RunFineBufferTest()
100 audio_device_buffer.SetRecordingSampleRate(kSampleRate); in RunFineBufferTest()
/external/webrtc/common_audio/
Dwav_file_unittest.cc106 constexpr int kSampleRate = 8000; in TEST() local
108 constexpr size_t kNumSamples = 3 * kSampleRate * kNumChannels; in TEST()
121 static_cast<double>(i) / (kNumChannels * kSampleRate); in TEST()
128 WavWriter w(outfile, kSampleRate, kNumChannels, wav_format); in TEST()
129 EXPECT_EQ(kSampleRate, w.sample_rate()); in TEST()
153 EXPECT_EQ(kSampleRate, r.sample_rate()); in TEST()
/external/webrtc/audio/test/
Daudio_end_to_end_test.cc28 constexpr int kSampleRate = 48000; variable
52 return TestAudioDeviceModule::CreatePulsedNoiseCapturer(32000, kSampleRate); in CreateCapturer()
57 return TestAudioDeviceModule::CreateDiscardRenderer(kSampleRate); in CreateRenderer()
/external/webrtc/modules/audio_device/include/
Dtest_audio_device_unittest.cc39 static const int kSampleRate = kSamplesPerFrame * 100; in RunTest() local
40 EXPECT_EQ(TestAudioDeviceModule::SamplesPerFrame(kSampleRate), in RunTest()
137 static const int kSampleRate = kSamplesPerFrame * 100; in TEST() local
138 EXPECT_EQ(TestAudioDeviceModule::SamplesPerFrame(kSampleRate), in TEST()
/external/webrtc/modules/audio_device/android/
Daudio_manager_unittest.cc220 const int kSampleRate = 48000; in TEST_F() local
226 AudioParameters params(kSampleRate, kChannels, kFramesPerBuffer); in TEST_F()
228 EXPECT_EQ(kSampleRate, params.sample_rate()); in TEST_F()
231 EXPECT_EQ(static_cast<size_t>(kSampleRate / 100), in TEST_F()
/external/brotli/c/enc/
Dcompress_fragment.c95 static const size_t kSampleRate = 29; in BuildAndStoreLiteralPrefixCode() local
96 for (i = 0; i < input_size; i += kSampleRate) { in BuildAndStoreLiteralPrefixCode()
99 histogram_total = (input_size + kSampleRate - 1) / kSampleRate; in BuildAndStoreLiteralPrefixCode()
375 static const size_t kSampleRate = 43; in ShouldMergeBlock() local
377 for (i = 0; i < len; i += kSampleRate) { in ShouldMergeBlock()
381 const size_t total = (len + kSampleRate - 1) / kSampleRate; in ShouldMergeBlock()
Dencode.c521 static const uint32_t kSampleRate = 13; in ShouldCompress() local
524 (double)bytes * kMinEntropy / kSampleRate; in ShouldCompress()
525 size_t t = (bytes + kSampleRate - 1) / kSampleRate; in ShouldCompress()
530 pos += kSampleRate; in ShouldCompress()
/external/libwebm/testing/
Dtest_util.h41 const int kSampleRate = 30; variable
Dmkvmuxer_tests.cc79 segment_.AddAudioTrack(kSampleRate, kChannels, kAudioTrackNumber)); in AddAudioTrack()
162 segment_.AddAudioTrack(kSampleRate, kChannels, kAudioTrackNumber)); in TEST_F()
166 EXPECT_EQ(kSampleRate, audio->sample_rate()); in TEST_F()
Dmkvparser_tests.cc162 EXPECT_EQ(kSampleRate, audio_track->GetSamplingRate()); in TEST_F()
/external/webrtc/modules/video_coding/
Dfec_controller_unittest.cc29 kSampleRate = 90000 // RTP timestamps per second. enumerator
/external/webrtc/audio/voip/test/
Daudio_egress_unittest.cc247 constexpr int kSampleRate = 8000; in TEST_F() local
250 egress_->RegisterTelephoneEventType(kPayloadType, kSampleRate); in TEST_F()
/external/webrtc/sdk/android/native_unittests/audio_device/
Daudio_device_unittest.cc1035 const int kSampleRate = 48000; in TEST_F() local
1041 AudioParameters params(kSampleRate, kChannels, kFramesPerBuffer); in TEST_F()
1043 EXPECT_EQ(kSampleRate, params.sample_rate()); in TEST_F()
1046 EXPECT_EQ(static_cast<size_t>(kSampleRate / 100), in TEST_F()
/external/oboe/docs/
DGettingStarted.md264 ->setSampleRate(kSampleRate)
306 static int constexpr kSampleRate = 48000;
312 static double constexpr mPhaseIncrement = kFrequency * kTwoPi / (double) kSampleRate;