John Titor Posted October 12, 2020 Share Posted October 12, 2020 Any reason Poweramp is not taking advantage of the new open source Oboe audio output for Android by Google? I looked at output settings but I only found OpenSL ES, AudioTrack, Hi-res output option. I could not find any option to switch to AAudio output. AAudio output API was developed for newer devices (Android 8+) some time ago and it improves the performance. They have also launched Oboe, an audio API for low latency output. > Oboe takes advantage of the improved performance and features of AAudio on Oreo MR1 (API 27+) whilst maintaining backward compatibility (using OpenSL ES) on API 16+. Quoted from https://android-developers.googleblog.com/2018/10/introducing-oboe-c-library-for-low.html Link to comment Share on other sites More sharing options...
John Titor Posted October 29, 2020 Author Share Posted October 29, 2020 I have created this thread few weeks ago. I haven't recieved a reply yet. So I am guessing External API category is the wrong place. This is a feature request so I am dropping it here. (I don't know how to move a thread to another category) anyway this feature is much wanted,at least for me, AAudio has lower latency. Link to comment Share on other sites More sharing options...
andrewilley Posted October 30, 2020 Share Posted October 30, 2020 Moved to Feature Requests. Andre Link to comment Share on other sites More sharing options...
John Titor Posted October 30, 2020 Author Share Posted October 30, 2020 Thanks! But any update on this yet? Do either @maxmp or you have anything to say on this? Link to comment Share on other sites More sharing options...
andrewilley Posted October 30, 2020 Share Posted October 30, 2020 It's not up to me I'm afraid, Max is the developer. It definitely won't be any time soon though, as all of his time is currently going into the EQ system updates and stand-alone module at the moment. Andre Link to comment Share on other sites More sharing options...
John Titor Posted February 14, 2021 Author Share Posted February 14, 2021 Hi again. According to https://developer.android.com/ndk/guides/audio/aaudio/aaudio , AAudio has two output formats `AAUDIO_FORMAT_PCM_I16` and `AAUDIO_FORMAT_PCM_FLOAT`. Does the later format allow 24bit output? If yes, can it be used to create low latency audio stream? Current (OpenSL ES) Hi-res output produces sound of high bitrate but at the cost of high latency. Link to comment Share on other sites More sharing options...
maxmp Posted February 15, 2021 Share Posted February 15, 2021 Oboe is a wrapper over AAudio. AAudio is wrapper over (Native) AudioTrack API for media player case scenario (it’s a bit different for low latency use case, but that is not intended for media players). AAudio is actually implemented in Poweramp, but disabled as it gives zero benefits. PS On second thought, I will probably re-enable AAudio output to avoid further requests and questions 😉 Link to comment Share on other sites More sharing options...
John Titor Posted February 16, 2021 Author Share Posted February 16, 2021 16 hours ago, maxmp said: AAudio is wrapper over (Native) AudioTrack API for media player case scenario (it’s a bit different for low latency use case, but that is not intended for media players). So basically it just calls java layer to produce the audio stream? Like how AudioTrack does? AudioTrack is a very old native API IIRC and AAudio was implemented in Android 8.0, so I was kinda expecting some improvements. And since Oboe just falls back to OpenSL ES on android 7.1 or older. I thought it was better than OpenSL ES. 16 hours ago, maxmp said: AAudio is actually implemented in Poweramp, but disabled as it gives zero benefits. Oh I was thinking of using it as an alternative to OpenSL ES. 🙄🤔 Link to comment Share on other sites More sharing options...
maxmp Posted March 11, 2021 Share Posted March 11, 2021 @Someguyonline it doesn’t call java, but it calls same apis used by audiotrack, opensl, and hi-res output (audioflinger set of APIs). Just another wrapper. There is cool mmap mode for very low latency, but that mode is not for the music players. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.