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:4850 | Replies:2        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 yesterday 09:30        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

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

This forum Credits Rules

Quick Reply Back to top Back to list