Hi, I am working on AudioFlinger part and we have an issue with the Normal Mixer.
I see that the media audio is not getting mixed with call audio. If someone goes into Youtube while he is on call and plays some video, its expected that the two sounds would get mixed and played to the user. This works fine on other Android devices but not working with the Android device that we are working on . The issue we face is that we hear only call audio and no audio of Youtube while we are in call. >From the AudioFlinger code, I have understood following, please let me know if I am on correct path: a. From Normal mixer, the data is passed to FastMixer, through MonoPipe. b. Assuming that two tracks are being played with the same output descriptor and none of the tracks is fast track, its expected that the Normal mixer will mix the two tracks and provide the mixed output to FastMixer. c. Tee Sink does not provide mechanism to dump Normal mixer output being passed to FastMixer. d. Tee Sink can be modified to provide the functionaliy of Normal mixer output to FastMixer. The Pipe used in that case would be a new MonoPipe and PipeReader would be MonoPipeReader. MonoPipe would use the same format as that is used in constructor of MixerThread for the new MonoPipe creation. In my case, using Tee sink option 4 (per track recording), I can see the two tracks being played separately in the recorded wave files. However in the FastMixer output (option 2), there is audio of only one audio track. Not sure where the data for the other track is going or being dumped. Note that the two tracks are on different sampling rates - one at 16k and another one at 44.1 k. The Audio HAL tries to play the audio at 16k sampling rate. We have been stuck on this issue for long time without any clue. If someone can advise how to proceed or can give some pointers, it will help. Regards, Sameer Joshi -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.