Firefly Open Source Community

Title: Cannot use AUDIO_SOURCE_REMOTE_SUBMIX as audio record source! [Print This Page]

Author: maye    Time: 1/6/2016 14:50
Title: 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<MediaSource> 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



Author: harrysh306    Time: 1/23/2026 09:12
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!
Author: jessica728    Time: 2/4/2026 09:30
I feel much more knowledgeable after reading it. I¡¯m about to take the GH-900 reliable learning materials exam. Wishing for a great result!
Author: danhunt644    Time: 2/6/2026 09:17
After reading this article, I have a more in-depth understanding of the related topics. Latest 1z1-809 test labs test questions¡ªfree and essential for your career and salary advancement!
Author: dylanmo798    Time: 2/15/2026 14:50
ITDumpsKR는 IT인증자격증시험에 대비한 덤프공부가이드를 제공해드리는 사이트인데 여러분의 자격증 취득의 꿈을 이루어드릴수 있습니다. SAP인증 C_BCSSS_2502시험을 등록하신 분들은 바로ITDumpsKR의SAP인증 C_BCSSS_2502덤프를 데려가 주세요. 단기간에 시험패스의 기적을 가져다드리는것을 약속합니다.
Author: fredlon687    Time: 2/17/2026 00:51
No second guesses, this content gets my like. Get free PR2F exam course to improve your IT knowledge. Wishing you success!




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1