lidecolor Posted March 21, 2023 Share Posted March 21, 2023 1.I use dumpsys media.audio_flinger ,Then I found that the HAL BUFFER SIZE is only 23040bytes, the audio frame is only 15376, and the number of audio frame buffers cannot control the maximum audio frame output. Link to comment Share on other sites More sharing options...
maxmp Posted March 21, 2023 Share Posted March 21, 2023 What audio performance issues do you mean? Also app certainly can’t do anything about HAL buffer sizes. If you mean buffer sizes do not match- they can’t match as we can’t query it and there are 5-6-7 buffers between app and “hardware” anyway. Link to comment Share on other sites More sharing options...
lidecolor Posted March 27, 2023 Author Share Posted March 27, 2023 On 3/21/2023 at 12:13 PM, maxmp said: What audio performance issues do you mean? Also app certainly can’t do anything about HAL buffer sizes. If you mean buffer sizes do not match- they can’t match as we can’t query it and there are 5-6-7 buffers between app and “hardware” anyway. There is a relationship between audio frames and delay, as far as I know, and in order to reduce the delay, the system will play with the smallest audio frame by default. The audio performance changes to delay, but the offload channel has 262144 audio frames. I hope to share this issue with you eagerly.😀 Link to comment Share on other sites More sharing options...
maxmp Posted March 27, 2023 Share Posted March 27, 2023 @lidecolor if you mean latency, for music playback we don't want reduced latencies, instead music player should prefer "deep buffers", so app consumes less cpu/battery and has less chance for a stutter. Thanks! Link to comment Share on other sites More sharing options...
lidecolor Posted April 12, 2023 Author Share Posted April 12, 2023 I mean audio performance improvements, the higher the performance the better, regardless of latency. Link to comment Share on other sites More sharing options...
andrewilley Posted April 12, 2023 Share Posted April 12, 2023 5 hours ago, lidecolor said: I mean audio performance improvements You still have not said what audio problems you hearing. What audible effects can you hear when listening to music? Andre Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now