Lines Matching refs:mConfig
76 mConfig{{}, {}}, in EffectModule()
317 memset(mConfig.inputCfg.buffer.raw, in updateState()
319 mConfig.inputCfg.buffer.frameCount*sizeof(int32_t)); in updateState()
362 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in process()
364 audio_channel_count_from_out_mask(mConfig.outputCfg.channels); in process()
375 mConfig.inputCfg.buffer.frameCount, in process()
376 mConfig.outputCfg.buffer.frameCount); in process()
380 mConfig.outputCfg.buffer.f32, in process()
381 mConfig.inputCfg.buffer.f32, in process()
385 mConfig.outputCfg.buffer.s16, in process()
386 mConfig.inputCfg.buffer.s16, in process()
393 mConfig.outputCfg.buffer.f32, in process()
394 mConfig.inputCfg.buffer.f32, in process()
395 safeInputOutputSampleCount * sizeof(*mConfig.outputCfg.buffer.f32)); in process()
399 mConfig.outputCfg.buffer.s16, in process()
400 mConfig.inputCfg.buffer.s16, in process()
401 safeInputOutputSampleCount * sizeof(*mConfig.outputCfg.buffer.s16)); in process()
419 mConfig.inputCfg.buffer.f32, in process()
420 mConfig.inputCfg.buffer.s32, in process()
421 mConfig.inputCfg.buffer.frameCount); in process()
428 mConfig.inputCfg.buffer.s16, in process()
429 mConfig.inputCfg.buffer.f32, in process()
430 mConfig.inputCfg.buffer.frameCount); in process()
433 mConfig.inputCfg.buffer.s16, in process()
434 mConfig.inputCfg.buffer.s32, in process()
435 mConfig.inputCfg.buffer.frameCount); in process()
449 * mInChannelCountRequested * mConfig.inputCfg.buffer.frameCount); in process()
452 if (mConfig.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE in process()
459 * mOutChannelCountRequested * mConfig.outputCfg.buffer.frameCount); in process()
471 inChannelCount * mConfig.inputCfg.buffer.frameCount); in process()
474 if (mConfig.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE) { in process()
482 outChannelCount * mConfig.outputCfg.buffer.frameCount); in process()
497 outChannelCount * mConfig.outputCfg.buffer.frameCount); in process()
503 sizeof(float) * outChannelCount * mConfig.outputCfg.buffer.frameCount); in process()
511 && mConfig.inputCfg.buffer.raw != mConfig.outputCfg.buffer.raw) { in process()
512 if (mConfig.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE) { in process()
530 mConfig.inputCfg.buffer.frameCount * inChannelCount * sizeof(float); in process()
533 mConfig.inputCfg.buffer.frameCount * inChannelCount * sizeof(int32_t); in process()
535 memset(mConfig.inputCfg.buffer.raw, 0, size); in process()
539 mConfig.inputCfg.buffer.raw != mConfig.outputCfg.buffer.raw) { in process()
545 if (mConfig.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE) { in process()
586 mConfig.inputCfg.channels = channelMask; in configure()
587 mConfig.outputCfg.channels = channelMask; in configure()
590 if (mConfig.inputCfg.channels != AUDIO_CHANNEL_OUT_MONO) { in configure()
591 mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_MONO; in configure()
593 mConfig.inputCfg.channels); in configure()
596 if (mConfig.outputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) { in configure()
597 mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
599 mConfig.outputCfg.channels); in configure()
607 mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
608 mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
614 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in configure()
616 audio_channel_count_from_out_mask(mConfig.outputCfg.channels); in configure()
618 mConfig.inputCfg.format = EFFECT_BUFFER_FORMAT; in configure()
619 mConfig.outputCfg.format = EFFECT_BUFFER_FORMAT; in configure()
623 mConfig.inputCfg.samplingRate = DEFAULT_OUTPUT_SAMPLE_RATE; in configure()
626 mConfig.inputCfg.samplingRate = thread->sampleRate(); in configure()
628 mConfig.outputCfg.samplingRate = mConfig.inputCfg.samplingRate; in configure()
629 mConfig.inputCfg.bufferProvider.cookie = NULL; in configure()
630 mConfig.inputCfg.bufferProvider.getBuffer = NULL; in configure()
631 mConfig.inputCfg.bufferProvider.releaseBuffer = NULL; in configure()
632 mConfig.outputCfg.bufferProvider.cookie = NULL; in configure()
633 mConfig.outputCfg.bufferProvider.getBuffer = NULL; in configure()
634 mConfig.outputCfg.bufferProvider.releaseBuffer = NULL; in configure()
635 mConfig.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in configure()
645 if (mConfig.inputCfg.buffer.raw != mConfig.outputCfg.buffer.raw) { in configure()
646 mConfig.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE; in configure()
648 mConfig.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_WRITE; in configure()
650 mConfig.inputCfg.mask = EFFECT_CONFIG_ALL; in configure()
651 mConfig.outputCfg.mask = EFFECT_CONFIG_ALL; in configure()
652 mConfig.inputCfg.buffer.frameCount = thread->frameCount(); in configure()
653 mConfig.outputCfg.buffer.frameCount = mConfig.inputCfg.buffer.frameCount; in configure()
656 this, thread.get(), mConfig.inputCfg.buffer.raw, mConfig.inputCfg.buffer.frameCount); in configure()
661 sizeof(mConfig), in configure()
662 &mConfig, in configure()
672 (mConfig.inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO in configure()
673 || mConfig.outputCfg.channels != AUDIO_CHANNEL_OUT_STEREO)) { in configure()
675 if (mConfig.inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO in configure()
677 ALOGV("Overriding effect input channels %#x as STEREO", mConfig.inputCfg.channels); in configure()
678 mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
680 if (mConfig.outputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) { in configure()
681 ALOGV("Overriding effect output channels %#x as STEREO", mConfig.outputCfg.channels); in configure()
682 mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
686 sizeof(mConfig), in configure()
687 &mConfig, in configure()
703 mConfig.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in configure()
704 mConfig.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in configure()
707 sizeof(mConfig), in configure()
708 &mConfig, in configure()
756 (uint64_t)MAX_DISABLE_TIME_MS * mConfig.outputCfg.samplingRate in configure()
757 / ((uint64_t)1000 * mConfig.outputCfg.buffer.frameCount)); in configure()
1093 mConfig.inputCfg.buffer.raw = buffer->audioBuffer()->raw; in setInBuffer()
1094 buffer->setFrameCount(mConfig.inputCfg.buffer.frameCount); in setInBuffer()
1096 mConfig.inputCfg.buffer.raw = NULL; in setInBuffer()
1108 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in setInBuffer()
1112 const size_t inFrameCount = mConfig.inputCfg.buffer.frameCount; in setInBuffer()
1143 mConfig.outputCfg.buffer.raw = buffer->audioBuffer()->raw; in setOutBuffer()
1144 buffer->setFrameCount(mConfig.outputCfg.buffer.frameCount); in setOutBuffer()
1146 mConfig.outputCfg.buffer.raw = NULL; in setOutBuffer()
1155 audio_channel_count_from_out_mask(mConfig.outputCfg.channels); in setOutBuffer()
1158 const size_t outFrameCount = mConfig.outputCfg.buffer.frameCount; in setOutBuffer()
1517 mConfig.inputCfg.buffer.raw, in dump()
1518 mConfig.inputCfg.buffer.frameCount, in dump()
1519 mConfig.inputCfg.samplingRate, in dump()
1520 mConfig.inputCfg.channels, in dump()
1521 mConfig.inputCfg.format, in dump()
1522 formatToString((audio_format_t)mConfig.inputCfg.format).c_str()); in dump()
1527 mConfig.outputCfg.buffer.raw, in dump()
1528 mConfig.outputCfg.buffer.frameCount, in dump()
1529 mConfig.outputCfg.samplingRate, in dump()
1530 mConfig.outputCfg.channels, in dump()
1531 mConfig.outputCfg.format, in dump()
1532 formatToString((audio_format_t)mConfig.outputCfg.format).c_str()); in dump()