Post an article with a test suite that will work for any Oboe app
- Dominant language
- C++
- Stars
- 4.1k
- Forks
- 639
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 8
Description
We could test the app's response to plugging in headphones when the app is playing, or when stopped, or when in background.
Also test interaction with other apps that may use MMAP.
For example:
1. Start an Oboe based App playing.
2. Do something in the app so you hear sound.
3. Use Home button to hide App
EXPECT - sound should stop unless it was designed for background operation
4. Enter: adb shell dumpsys media.audio
EXPECT - stream should be closed to free up audio resources
If the app is holding a stream open then continue this test.
5. Launch OboeTester
6. Press TEST OUTPUT
7. Press OPEN then START
8. Note that the stream is "MMAP SH". It is shared because App's EXCLUSIVE stream was stolen and shared with OboeTester.
9. Press CLOSE
10. Use HOME button to hide OboeTester
11. Open App
12. Start playing the App
EXPECT - hear sound, see response in UI
Contributor guide
Assessment
This issue has not been assessed yet.