Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Cannot use AUDIO_SOURCE_REMOTE_SUBMIX as audio record source!

16

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
16

Cannot use AUDIO_SOURCE_REMOTE_SUBMIX as audio record source!

Posted at 1/6/2016 14:50:00      View:4943 | Replies:5        Print      Only Author   [Copy Link] 1#
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


Reply

Use props Report

134

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
134
Posted at 1/23/2026 09:12:47        Only Author  2#
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!
Reply

Use props Report

138

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
138
Posted at 2/4/2026 09:30:36        Only Author  3#
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!
Reply

Use props Report

129

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
129
Posted at 2/6/2026 09:17:35        Only Author  4#
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!
Reply

Use props Report

126

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

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

Use props Report

125

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
125
Posted at 4 day before        Only Author  6#
No second guesses, this content gets my like. Get free PR2F exam course to improve your IT knowledge. Wishing you success!
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list