OboeTester: should use a foreground service
This will make it easier to run in the background with the screen off or when switching apps.
The UI should funnel all audio related control through the service.
On a related note: my recoding app, using AAudio with callbacks, needs to record for up to several hours. Is there anything I need to / can do to enable it to withstand app-switching and screen locks, from an AAudio point of view?
Also I'm starting up threads (std::thread) periodically to compress the data - up to about 200ms at a time for 1sec of data on a Samsung S9. It looks as though that processing might be getting affected in the background. Any advice on what to do about that? It's not clear to me what Android rules govern NDK threads in the background.
Thanks in advance.
Robert already fixed this.