[Q] [AUDIO] low-level audio topic
Hello everyone, this is my first thread on xda, I hope not wrong to post.
My problem is this:
I would like to create an app that for the moment only do two things, reads from the audio in of the device, and write on the audio output.
I created the app using the classes AudioRecord and AudioTrack provided by Android but I have a latency which is about 500ms and then makes the app unusable.
I would then read and write to the lowest level possible, even using JNI. From what I understand, Android has an abstraction layer called HAL that allows a generic access to the hardware without worrying about the platform.
So my question is: can I from my app, call the functions of the HAL level? And if so, how? And how do I know what are the functions of the HAL level that I can call?
I would be very grateful if someone could solve my doubts. Or if anyone has a link to some document that explains it, understandable for beginners, I would be very grateful.
Thank you all.
My problem is this:
I would like to create an app that for the moment only do two things, reads from the audio in of the device, and write on the audio output.
I created the app using the classes AudioRecord and AudioTrack provided by Android but I have a latency which is about 500ms and then makes the app unusable.
I would then read and write to the lowest level possible, even using JNI. From what I understand, Android has an abstraction layer called HAL that allows a generic access to the hardware without worrying about the platform.
So my question is: can I from my app, call the functions of the HAL level? And if so, how? And how do I know what are the functions of the HAL level that I can call?
I would be very grateful if someone could solve my doubts. Or if anyone has a link to some document that explains it, understandable for beginners, I would be very grateful.
Thank you all.
xda-developers
0 commentaires:
Enregistrer un commentaire