Lines Matching refs:mConfig

522       mConfig{{}, {}},  in EffectModule()
594 memset(mConfig.inputCfg.buffer.raw, in updateState()
596 mConfig.inputCfg.buffer.frameCount*sizeof(int32_t)); in updateState()
639 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in process()
641 audio_channel_count_from_out_mask(mConfig.outputCfg.channels); in process()
652 mConfig.inputCfg.buffer.frameCount, in process()
653 mConfig.outputCfg.buffer.frameCount); in process()
657 mConfig.outputCfg.buffer.f32, in process()
658 mConfig.inputCfg.buffer.f32, in process()
662 mConfig.outputCfg.buffer.s16, in process()
663 mConfig.inputCfg.buffer.s16, in process()
670 mConfig.outputCfg.buffer.f32, in process()
671 mConfig.inputCfg.buffer.f32, in process()
672 safeInputOutputSampleCount * sizeof(*mConfig.outputCfg.buffer.f32)); in process()
676 mConfig.outputCfg.buffer.s16, in process()
677 mConfig.inputCfg.buffer.s16, in process()
678 safeInputOutputSampleCount * sizeof(*mConfig.outputCfg.buffer.s16)); in process()
696 mConfig.inputCfg.buffer.f32, in process()
697 mConfig.inputCfg.buffer.s32, in process()
698 mConfig.inputCfg.buffer.frameCount); in process()
705 mConfig.inputCfg.buffer.s16, in process()
706 mConfig.inputCfg.buffer.f32, in process()
707 mConfig.inputCfg.buffer.frameCount); in process()
710 mConfig.inputCfg.buffer.s16, in process()
711 mConfig.inputCfg.buffer.s32, in process()
712 mConfig.inputCfg.buffer.frameCount); in process()
726 * mInChannelCountRequested * mConfig.inputCfg.buffer.frameCount); in process()
729 if (mConfig.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE in process()
736 * mOutChannelCountRequested * mConfig.outputCfg.buffer.frameCount); in process()
748 inChannelCount * mConfig.inputCfg.buffer.frameCount); in process()
751 if (mConfig.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE) { in process()
759 outChannelCount * mConfig.outputCfg.buffer.frameCount); in process()
774 outChannelCount * mConfig.outputCfg.buffer.frameCount); in process()
780 sizeof(float) * outChannelCount * mConfig.outputCfg.buffer.frameCount); in process()
788 && mConfig.inputCfg.buffer.raw != mConfig.outputCfg.buffer.raw) { in process()
789 if (mConfig.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE) { in process()
807 mConfig.inputCfg.buffer.frameCount * inChannelCount * sizeof(float); in process()
810 mConfig.inputCfg.buffer.frameCount * inChannelCount * sizeof(int32_t); in process()
812 memset(mConfig.inputCfg.buffer.raw, 0, size); in process()
816 mConfig.inputCfg.buffer.raw != mConfig.outputCfg.buffer.raw) { in process()
821 if (mConfig.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE) { in process()
855 mConfig.inputCfg.channels = channelMask; in configure()
856 mConfig.outputCfg.channels = channelMask; in configure()
859 if (mConfig.inputCfg.channels != AUDIO_CHANNEL_OUT_MONO) { in configure()
860 mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_MONO; in configure()
862 mConfig.inputCfg.channels); in configure()
865 if (mConfig.outputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) { in configure()
866 mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
868 mConfig.outputCfg.channels); in configure()
876 mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
877 mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
883 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in configure()
885 audio_channel_count_from_out_mask(mConfig.outputCfg.channels); in configure()
887 mConfig.inputCfg.format = EFFECT_BUFFER_FORMAT; in configure()
888 mConfig.outputCfg.format = EFFECT_BUFFER_FORMAT; in configure()
892 mConfig.inputCfg.samplingRate = DEFAULT_OUTPUT_SAMPLE_RATE; in configure()
895 mConfig.inputCfg.samplingRate = mCallback->sampleRate(); in configure()
897 mConfig.outputCfg.samplingRate = mConfig.inputCfg.samplingRate; in configure()
898 mConfig.inputCfg.bufferProvider.cookie = NULL; in configure()
899 mConfig.inputCfg.bufferProvider.getBuffer = NULL; in configure()
900 mConfig.inputCfg.bufferProvider.releaseBuffer = NULL; in configure()
901 mConfig.outputCfg.bufferProvider.cookie = NULL; in configure()
902 mConfig.outputCfg.bufferProvider.getBuffer = NULL; in configure()
903 mConfig.outputCfg.bufferProvider.releaseBuffer = NULL; in configure()
904 mConfig.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in configure()
914 if (mConfig.inputCfg.buffer.raw != mConfig.outputCfg.buffer.raw) { in configure()
915 mConfig.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE; in configure()
917 mConfig.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_WRITE; in configure()
919 mConfig.inputCfg.mask = EFFECT_CONFIG_ALL; in configure()
920 mConfig.outputCfg.mask = EFFECT_CONFIG_ALL; in configure()
921 mConfig.inputCfg.buffer.frameCount = mCallback->frameCount(); in configure()
922 mConfig.outputCfg.buffer.frameCount = mConfig.inputCfg.buffer.frameCount; in configure()
926 mConfig.inputCfg.buffer.raw, mConfig.inputCfg.buffer.frameCount); in configure()
931 sizeof(mConfig), in configure()
932 &mConfig, in configure()
942 (mConfig.inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO in configure()
943 || mConfig.outputCfg.channels != AUDIO_CHANNEL_OUT_STEREO)) { in configure()
945 if (mConfig.inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO in configure()
947 ALOGV("Overriding effect input channels %#x as STEREO", mConfig.inputCfg.channels); in configure()
948 mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
950 if (mConfig.outputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) { in configure()
951 ALOGV("Overriding effect output channels %#x as STEREO", mConfig.outputCfg.channels); in configure()
952 mConfig.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in configure()
956 sizeof(mConfig), in configure()
957 &mConfig, in configure()
973 mConfig.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in configure()
974 mConfig.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in configure()
977 sizeof(mConfig), in configure()
978 &mConfig, in configure()
1022 (uint64_t)MAX_DISABLE_TIME_MS * mConfig.outputCfg.samplingRate in configure()
1023 / ((uint64_t)1000 * mConfig.outputCfg.buffer.frameCount)); in configure()
1276 mConfig.inputCfg.buffer.raw = buffer->audioBuffer()->raw; in setInBuffer()
1277 buffer->setFrameCount(mConfig.inputCfg.buffer.frameCount); in setInBuffer()
1279 mConfig.inputCfg.buffer.raw = NULL; in setInBuffer()
1291 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in setInBuffer()
1295 const size_t inFrameCount = mConfig.inputCfg.buffer.frameCount; in setInBuffer()
1324 mConfig.outputCfg.buffer.raw = buffer->audioBuffer()->raw; in setOutBuffer()
1325 buffer->setFrameCount(mConfig.outputCfg.buffer.frameCount); in setOutBuffer()
1327 mConfig.outputCfg.buffer.raw = NULL; in setOutBuffer()
1336 audio_channel_count_from_out_mask(mConfig.outputCfg.channels); in setOutBuffer()
1339 const size_t outFrameCount = mConfig.outputCfg.buffer.frameCount; in setOutBuffer()
1556 mConfig.inputCfg.buffer.raw, in dump()
1557 mConfig.inputCfg.buffer.frameCount, in dump()
1558 mConfig.inputCfg.samplingRate, in dump()
1559 mConfig.inputCfg.channels, in dump()
1560 mConfig.inputCfg.format, in dump()
1561 formatToString((audio_format_t)mConfig.inputCfg.format).c_str()); in dump()
1566 mConfig.outputCfg.buffer.raw, in dump()
1567 mConfig.outputCfg.buffer.frameCount, in dump()
1568 mConfig.outputCfg.samplingRate, in dump()
1569 mConfig.outputCfg.channels, in dump()
1570 mConfig.outputCfg.format, in dump()
1571 formatToString((audio_format_t)mConfig.outputCfg.format).c_str()); in dump()