Home
last modified time | relevance | path

Searched refs:sampleRate (Results 1 – 25 of 69) sorted by relevance

123

/third_party/skia/third_party/externals/oboe/samples/iolib/src/main/cpp/player/
DSampleBuffer.cpp31 mAudioProperties.sampleRate = reader->getSampleRate(); in loadSampleData()
95 void SampleBuffer::resampleData(int sampleRate) { in resampleData() argument
96 if (mAudioProperties.sampleRate == sampleRate) { in resampleData()
104 inputBlock.mSampleRate = mAudioProperties.sampleRate; in resampleData()
107 outputBlock.mSampleRate = sampleRate; in resampleData()
116 mAudioProperties.sampleRate = outputBlock.mSampleRate; in resampleData()
DSampleBuffer.h29 int32_t sampleRate; member
41 void resampleData(int sampleRate);
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/
DNDKExtractor.cpp48 int32_t sampleRate; in decode() local
49 if (AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_SAMPLE_RATE, &sampleRate)){ in decode()
50 LOGD("Source sample rate %d", sampleRate); in decode()
51 if (sampleRate != targetProperties.sampleRate){ in decode()
54 sampleRate, in decode()
55 targetProperties.sampleRate); in decode()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DAutoGlitchActivity.java157 int sampleRate, in testConfiguration() argument
176 requestedInConfig.setSampleRate(sampleRate); in testConfiguration()
177 requestedOutConfig.setSampleRate(sampleRate); in testConfiguration()
271 int sampleRate) throws InterruptedException { in testConfiguration() argument
274 sampleRate, 1, 2); in testConfiguration()
277 sampleRate, 2, 1); in testConfiguration()
300 for (int sampleRate : SAMPLE_RATES) { in run()
303 sampleRate); in run()
DTestAudioActivity.java382 int sampleRate = 0; in openAudio() local
391 if (sampleRate == 0) { in openAudio()
392 sampleRate = streamSampleRate; in openAudio()
398 if (sampleRate != 0) { in openAudio()
399 streamContext.tester.requestedConfiguration.setSampleRate(sampleRate); in openAudio()
DManualGlitchActivity.java198 int sampleRate = bundle.getInt(KEY_SAMPLE_RATE, VALUE_DEFAULT_SAMPLE_RATE); in configureStreamsFromBundle() local
199 requestedInConfig.setSampleRate(sampleRate); in configureStreamsFromBundle()
200 requestedOutConfig.setSampleRate(sampleRate); in configureStreamsFromBundle()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/flowunits/
DOscillatorBase.h38 void setSampleRate(float sampleRate) { in setSampleRate() argument
39 mSampleRate = sampleRate; in setSampleRate()
40 mFrequencyToPhaseIncrement = 2.0f / sampleRate; // -1 to +1 is a range of 2 in setSampleRate()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
DLatencyAnalyzer.h159 void setSampleRate(int32_t sampleRate) { in setSampleRate() argument
160 mSampleRate = sampleRate; in setSampleRate()
332 virtual void setSampleRate(int32_t sampleRate) { in setSampleRate() argument
333 mSampleRate = sampleRate; in setSampleRate()
413 void setSampleRate(int32_t sampleRate) override { in setSampleRate() argument
414 LoopbackProcessor::setSampleRate(sampleRate); in setSampleRate()
415 mAudioRecording.setSampleRate(sampleRate); in setSampleRate()
/third_party/flutter/skia/third_party/externals/sdl/src/audio/emscripten/
DSDL_emscriptenaudio.c304 const int sampleRate = EM_ASM_INT_V({ in EMSCRIPTENAUDIO_OpenDevice() local
305 return SDL2.audioContext.sampleRate; in EMSCRIPTENAUDIO_OpenDevice()
308 if(this->spec.freq != sampleRate) { in EMSCRIPTENAUDIO_OpenDevice()
310 f = (float)i / (float)sampleRate * (float)this->spec.freq; in EMSCRIPTENAUDIO_OpenDevice()
317 this->spec.freq = sampleRate; in EMSCRIPTENAUDIO_OpenDevice()
364 … SDL2.capture.silenceBuffer = SDL2.audioContext.createBuffer($0, $1, SDL2.audioContext.sampleRate); in EMSCRIPTENAUDIO_OpenDevice()
371 …L2.capture.silenceTimer = setTimeout(silence_callback, ($1 / SDL2.audioContext.sampleRate) * 1000); in EMSCRIPTENAUDIO_OpenDevice()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/
DSineVoice.java23 public SineVoice(int sampleRate) { in SineVoice() argument
24 super(sampleRate); in SineVoice()
DSawVoice.java26 public SawVoice(int sampleRate) { in SawVoice() argument
28 mEnvelope = new EnvelopeADSR(sampleRate); in SawVoice()
DEnvelopeADSR.java41 public EnvelopeADSR( int sampleRate) { in EnvelopeADSR() argument
42 mSamplerate = sampleRate; in EnvelopeADSR()
/third_party/skia/third_party/externals/oboe/samples/shared/
DTappableAudioSource.h31 TappableAudioSource(int32_t sampleRate, int32_t channelCount) : in TappableAudioSource() argument
32 mSampleRate(sampleRate), mChannelCount(channelCount) { } in TappableAudioSource()
DOscillator.h43 void setSampleRate(int32_t sampleRate) { in setSampleRate() argument
44 mSampleRate = sampleRate; in setSampleRate()
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/utils/
DSineWave.h25 SineWave(float frequency, float amplitude, int sampleRate): in SineWave() argument
26 mPhasor(frequency, sampleRate), in SineWave()
DPhaseAccumulator.h26 PhaseAccumulator(float frequency, float sampleRate): in PhaseAccumulator() argument
28 fs(sampleRate) { } in PhaseAccumulator()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/utils/
DUtilityFunctions.h33 constexpr int64_t convertFramesToMillis(const int64_t frames, const int sampleRate){ in convertFramesToMillis() argument
34 return static_cast<int64_t>((static_cast<double>(frames)/ sampleRate) * kMillisecondsInSecond); in convertFramesToMillis()
/third_party/skia/third_party/externals/oboe/samples/hello-oboe/src/main/cpp/
DSoundGenerator.cpp19 SoundGenerator::SoundGenerator(int32_t sampleRate, int32_t channelCount) : in SoundGenerator() argument
20 TappableAudioSource(sampleRate, channelCount) in SoundGenerator()
Djni_bridge.cpp156 jint sampleRate, in Java_com_google_oboe_samples_hellooboe_PlaybackEngine_native_1setDefaultStreamValues() argument
158 oboe::DefaultStreamValues::SampleRate = (int32_t) sampleRate; in Java_com_google_oboe_samples_hellooboe_PlaybackEngine_native_1setDefaultStreamValues()
/third_party/skia/third_party/externals/oboe/samples/MegaDrone/src/main/cpp/
DSynth.h36 Synth(int32_t sampleRate, int32_t channelCount) : in Synth() argument
37 TappableAudioSource(sampleRate, channelCount) { in Synth()
Dnative-lib.cpp82 jint sampleRate, in Java_com_google_oboe_samples_megadrone_MainActivity_native_1setDefaultStreamValues() argument
84 oboe::DefaultStreamValues::SampleRate = (int32_t) sampleRate; in Java_com_google_oboe_samples_megadrone_MainActivity_native_1setDefaultStreamValues()
/third_party/skia/third_party/externals/oboe/src/opensles/
DAudioStreamOpenSLES.cpp96 Result AudioStreamOpenSLES::configureBufferSizes(int32_t sampleRate) { in configureBufferSizes() argument
98 __func__, sampleRate, mFramesPerBurst, mFramesPerCallback); in configureBufferSizes()
108 (kHighLatencyBufferSizeMillis * sampleRate) / kMillisPerSecond; in configureBufferSizes()
124 __func__, sampleRate, mFramesPerBurst, mFramesPerCallback); in configureBufferSizes()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/
Dnative-lib.cpp88 jint sampleRate, in Java_com_google_oboe_samples_rhythmgame_MainActivity_native_1setDefaultStreamValues() argument
90 oboe::DefaultStreamValues::SampleRate = (int32_t) sampleRate; in Java_com_google_oboe_samples_rhythmgame_MainActivity_native_1setDefaultStreamValues()
/third_party/skia/third_party/externals/oboe/samples/LiveEffect/src/main/cpp/
Djni_bridge.cpp126 jint sampleRate, in Java_com_google_oboe_samples_liveEffect_LiveEffectEngine_native_1setDefaultStreamValues() argument
128 oboe::DefaultStreamValues::SampleRate = (int32_t) sampleRate; in Java_com_google_oboe_samples_liveEffect_LiveEffectEngine_native_1setDefaultStreamValues()
/third_party/skia/third_party/externals/oboe/include/oboe/
DAudioStreamBuilder.h72 AudioStreamBuilder *setSampleRate(int32_t sampleRate) { in setSampleRate() argument
73 mSampleRate = sampleRate; in setSampleRate()

123