Cannot use AUDIO_SOURCE_REMOTE_SUBMIX as audio record source!

Hi Guys,

My current project might need to use AUDIO_SOURCE_REMOTE_SUBMIX as audio source to be streamed out just like wifi-display did.

in the sample code, i’ve already be able to use AUDIO_SOURCE_DEFAULT as audio source and encoded it AMR or AAC and saved as .m4a file.
But when I set AUDIO_SOURCE_REMOTE_SUBMIX as source, i got segment fault.

the code to get input source is:
sp source = new AudioSource(
//AUDIO_SOURCE_DEFAULT, // ok
AUDIO_SOURCE_REMOTE_SUBMIX, // error
kSampleRate /* sampleRate /,
kNumChannels /
channelCount */);

the log when use AUDIO_SOURCE_REMOTE_SUBMIX is:
D/AudioHardwareALSA( 142): AudioHardwareALSA::getInputBufferSize sampleRate:8000,format:1,channelCount:2
D/AudioHardwareALSA( 142): AudioStreamInALSA::getInputBufferSize sampleRate:8000,format:1,channelCount:2
W/AudioPolicyManagerBase( 142): getInput() could not find profile for device 80000100, samplingRate 8000, format 1,channelMask 000c
E/AudioRecord( 1908): Could not get audio input for record source 8
F/libc ( 1908): Fatal signal 11 (SIGSEGV) at 0x00000010 (code=1), thread 1908 (audioloop)

the audio source MACROs are defined in file ./system/core/include/system/audio.h

Does this error means that current RK3288 audio driver doesn’t support? or I need to get some proper pemission to do so?

any comments are welcomed

thanks in advance

Maye

This article has truly been inspiring, thanks for sharing! Here’s the FCP_GCS_AD-7.6 best vce test I passed to earn my promotion and salary increase. It’s free for you today—best of luck in your career goals!

ITDumpsKR는 IT인증자격증시험에 대비한 덤프공부가이드를 제공해드리는 사이트인데 여러분의 자격증 취득의 꿈을 이루어드릴수 있습니다. SAP인증 C_BCSSS_2502시험을 등록하신 분들은 바로ITDumpsKR의SAP인증 C_BCSSS_2502덤프를 데려가 주세요. 단기간에 시험패스의 기적을 가져다드리는것을 약속합니다.

No second guesses, this content gets my like. Get free PR2F exam course to improve your IT knowledge. Wishing you success!