Home
last modified time | relevance | path

Searched refs:channelCount (Results 1 – 25 of 105) sorted by relevance

12345

/third_party/skia/third_party/externals/oboe/src/flowgraph/
DManyToMultiConverter.cpp23 ManyToMultiConverter::ManyToMultiConverter(int32_t channelCount) in ManyToMultiConverter() argument
24 : inputs(channelCount) in ManyToMultiConverter()
25 , output(*this, channelCount) { in ManyToMultiConverter()
26 for (int i = 0; i < channelCount; i++) { in ManyToMultiConverter()
32 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
34 for (int ch = 0; ch < channelCount; ch++) { in onProcess()
42 outputBuffer += channelCount; // advance to next multichannel frame in onProcess()
DFlowGraphNode.h345 explicit FlowGraphSource(int32_t channelCount) in FlowGraphSource() argument
346 : output(*this, channelCount) { in FlowGraphSource()
363 explicit FlowGraphSourceBuffered(int32_t channelCount) in FlowGraphSourceBuffered() argument
364 : FlowGraphSource(channelCount) {} in FlowGraphSourceBuffered()
395 explicit FlowGraphSink(int32_t channelCount) in FlowGraphSink() argument
396 : input(*this, channelCount) { in FlowGraphSink()
432 explicit FlowGraphFilter(int32_t channelCount) in FlowGraphFilter() argument
433 : input(*this, channelCount) in FlowGraphFilter()
434 , output(*this, channelCount) { in FlowGraphFilter()
DSourceFloat.cpp25 SourceFloat::SourceFloat(int32_t channelCount) in SourceFloat() argument
26 : FlowGraphSourceBuffered(channelCount) { in SourceFloat()
31 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
35 int32_t numSamples = framesToProcess * channelCount; in onProcess()
38 const float *floatData = &floatBase[mFrameIndex * channelCount]; in onProcess()
DSourceI16.cpp29 SourceI16::SourceI16(int32_t channelCount) in SourceI16() argument
30 : FlowGraphSourceBuffered(channelCount) { in SourceI16()
35 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
39 int32_t numSamples = framesToProcess * channelCount; in onProcess()
42 const int16_t *shortData = &shortBase[mFrameIndex * channelCount]; in onProcess()
DSourceI24.cpp31 SourceI24::SourceI24(int32_t channelCount) in SourceI24() argument
32 : FlowGraphSourceBuffered(channelCount) { in SourceI24()
37 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
41 int32_t numSamples = framesToProcess * channelCount; in onProcess()
44 const uint8_t *byteData = &byteBase[mFrameIndex * channelCount * kBytesPerI24Packed]; in onProcess()
DRampLinear.cpp24 RampLinear::RampLinear(int32_t channelCount) in RampLinear() argument
25 : FlowGraphFilter(channelCount) { in RampLinear()
44 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
62 for (int ch = 0; ch < channelCount; ch++) { in onProcess()
71 int32_t samplesLeft = framesLeft * channelCount; in onProcess()
DSinkFloat.cpp24 SinkFloat::SinkFloat(int32_t channelCount) in SinkFloat() argument
25 : FlowGraphSink(channelCount) { in SinkFloat()
31 int32_t channelCount = input.getSamplesPerFrame(); in read() local
42 int32_t numSamples = framesPulled * channelCount; in read()
DSinkI16.cpp28 SinkI16::SinkI16(int32_t channelCount) in SinkI16() argument
29 : FlowGraphSink(channelCount) {} in SinkI16()
33 const int32_t channelCount = input.getSamplesPerFrame(); in read() local
43 int32_t numSamples = framesRead * channelCount; in read()
DSampleRateConverter.cpp22 SampleRateConverter::SampleRateConverter(int32_t channelCount, MultiChannelResampler &resampler) in SampleRateConverter() argument
23 : FlowGraphFilter(channelCount) in SampleRateConverter()
51 int32_t channelCount = output.getSamplesPerFrame(); in onProcess() local
65 outputBuffer += channelCount; in onProcess()
DSinkI24.cpp30 SinkI24::SinkI24(int32_t channelCount) in SinkI24() argument
31 : FlowGraphSink(channelCount) {} in SinkI24()
35 const int32_t channelCount = input.getSamplesPerFrame(); in read() local
45 int32_t numSamples = framesRead * channelCount; in read()
DMultiToMonoConverter.cpp33 int32_t channelCount = input.getSamplesPerFrame(); in onProcess() local
37 inputBuffer += channelCount; in onProcess()
DClipToRange.cpp24 ClipToRange::ClipToRange(int32_t channelCount) in ClipToRange() argument
25 : FlowGraphFilter(channelCount) { in ClipToRange()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/audio/
DPlayer.cpp27 int64_t totalSourceFrames = mSource->getSize() / properties.channelCount; in renderAudio()
37 for (int j = 0; j < properties.channelCount; ++j) { in renderAudio()
38 … targetData[(i*properties.channelCount)+j] = data[(mReadFrameIndex*properties.channelCount)+j]; in renderAudio()
47 renderSilence(&targetData[framesToRenderFromData], numFrames * properties.channelCount); in renderAudio()
51 renderSilence(targetData, numFrames * properties.channelCount); in renderAudio()
DNDKExtractor.cpp63 int32_t channelCount; in decode() local
64 if (AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &channelCount)){ in decode()
65 LOGD("Got channel count %d", channelCount); in decode()
66 if (channelCount != targetProperties.channelCount){ in decode()
69 channelCount, in decode()
70 targetProperties.channelCount); in decode()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/
DInputStreamCallbackAnalyzer.cpp24 int32_t channelCount = audioStream->getChannelCount(); in onAudioReady() local
35 for (int iChannel = 0; iChannel < channelCount; iChannel++) { in onAudioReady()
39 frameData += channelCount; in onAudioReady()
48 for (int iChannel = 0; iChannel < channelCount; iChannel++) { in onAudioReady()
52 frameData += channelCount; in onAudioReady()
DMultiChannelRecording.h33 MultiChannelRecording(int32_t channelCount, int32_t maxFrames) in MultiChannelRecording() argument
34 : mChannelCount(channelCount) in MultiChannelRecording()
36 mData = new float[channelCount * maxFrames]; in MultiChannelRecording()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DTestOutputActivity.java88 int channelCount = mAudioOutTester.getCurrentAudioStream().getChannelCount(); in openAudio() local
89 configureChannelBoxes(channelCount); in openAudio()
92 private void configureChannelBoxes(int channelCount) { in configureChannelBoxes() argument
94 mChannelBoxes[i].setChecked(i < channelCount); in configureChannelBoxes()
95 mChannelBoxes[i].setEnabled(i < channelCount); in configureChannelBoxes()
/third_party/skia/third_party/externals/oboe/src/common/
DSourceI16Caller.h33 SourceI16Caller(int32_t channelCount, int32_t framesPerCallback) in SourceI16Caller() argument
34 : AudioSourceCaller(channelCount, framesPerCallback, sizeof(int16_t)) { in SourceI16Caller()
35 mConversionBuffer = std::make_unique<int16_t[]>(channelCount * output.getFramesPerBuffer()); in SourceI16Caller()
DAudioSourceCaller.h37 AudioSourceCaller(int32_t channelCount, int32_t framesPerCallback, int32_t bytesPerSample) in AudioSourceCaller() argument
38 : FlowGraphSource(channelCount) in AudioSourceCaller()
40 mBlockReader.open(channelCount * framesPerCallback * bytesPerSample); in AudioSourceCaller()
DSourceFloatCaller.h33 SourceFloatCaller(int32_t channelCount, int32_t framesPerCallback) in SourceFloatCaller() argument
34 : AudioSourceCaller(channelCount, framesPerCallback, (int32_t)sizeof(float)) {} in SourceFloatCaller()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
DLatencyAnalyzer.h281 virtual result_code processInputFrame(float *frameData, int channelCount) = 0;
282 virtual result_code processOutputFrame(float *frameData, int channelCount) = 0;
515 result_code processInputFrame(float *frameData, int channelCount) override { in processInputFrame() argument
534 mAudioRecording.write(frameData, channelCount, 1); in processInputFrame()
550 result_code processOutputFrame(float *frameData, int channelCount) override { in processOutputFrame() argument
555 for (int i = 0; i < channelCount; i++) { in processOutputFrame()
559 for (int i = 0; i < channelCount; i++) { in processOutputFrame()
569 for (int i = 0; i < channelCount; i++) { in processOutputFrame()
/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()
21 , mOscillators(std::make_unique<Oscillator[]>(channelCount)){ in SoundGenerator()
/third_party/skia/third_party/externals/oboe/samples/hello-oboe/src/main/java/com/google/oboe/samples/hellooboe/
DPlaybackEngine.java71 static void setChannelCount(int channelCount) { in setChannelCount() argument
72 if (mEngineHandle != 0) native_setChannelCount(mEngineHandle, channelCount); in setChannelCount()
94 private static native void native_setChannelCount(long mEngineHandle, int channelCount); in native_setChannelCount() argument
/third_party/skia/third_party/externals/oboe/src/flowgraph/resampler/
DMultiChannelResampler.h79 Builder *setChannelCount(int32_t channelCount) { in setChannelCount() argument
80 mChannelCount = channelCount; in setChannelCount()
159 static MultiChannelResampler *make(int32_t channelCount,
/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()

12345