googlearchive / android-audio-high-performance

We now recommend you use the Oboe libraries:
https://github.com/google/oboe
Apache License 2.0
719 stars 275 forks source link

Running echo on a Mate 20 Pro #123

Closed drormaydan closed 5 years ago

drormaydan commented 5 years ago

Hi, I've tried to use the echo sample on a Huawei Mate 20 Pro, and the sound comes out at a much lower frequency and distorted. Any idea if this bug is in the demo or the phone software? I was able to run the demo without issue on other Huawei phones.

Thanks! Dror

philburk commented 5 years ago

There may be an issue with the mono input on the Huawei Mate 20 Pro. As an experiment, can you try switching to stereo? You may need to modify the processing code to handle the two channels.

philburk commented 5 years ago

Also note that we recommend using Oboe instead of calling AAudio directly.

https://github.com/google/oboe

drormaydan commented 5 years ago

Thanks! The Oboe sample does appear to work properly. Btw, I notice that the LiveEffect app allows me to select telephony as either the input or output device. Does that mean that if I select telephony as a playback device and make a call at the same time, my call will filter my speech through the App? I had read previously that Android doesn’t allow you to create a virtual microphone.

Thanks! Dror

On Mar 24, 2019, at 5:01 PM, Phil Burk notifications@github.com wrote:

Also note that we recommend using Oboe instead of calling AAudio directly.

https://github.com/google/oboe https://github.com/google/oboe — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/googlesamples/android-audio-high-performance/issues/123#issuecomment-476015394, or mute the thread https://github.com/notifications/unsubscribe-auth/AojnDeo3WP54wQpfBNqECdTgslyAr22hks5vaBHdgaJpZM4cEg9D.

codingjeremy commented 5 years ago

This sample has been deprecated/archived (check README for more information on newer samples related to this technology).

As recommended by GitHub, we are closing all issues and pull requests.