oboe
oboe copied to clipboard
OboeTester: add a test for two output streams
Try to open TWO output streams with independent settings to test interference.
Will the AAudio service open a second mixer for SHARED if the devices do not match?
See #1844
UI layout could be similar to the ECHO INPUT TO OUTPUT screen.
- each output can be configured independently
- each output can be opened/started/etc independently
- each output can have its own signal so we can tell them apart
We are looking for interference in the service so we do not need the buffer size or workload UIs. Also don't need "callback returns stop" checkbox.
Assigning back to Phil because there is heavy refactoring involved to support multiple input/output streams in OboeTester
Will this work given the issues #1494 and #1472 where AAudio does not guarantee that setDeviceId() will return the requested device? I understand it has to do with the AudioPolicy and DSP paths, and that there was an internal issue https://issuetracker.google.com/issues/219763493, but do not know whether this was solved in the end?
It should be possible for OboeTester to open two streams. The only problem is that there are some calls in OboeTester that return "the output stream", assuming there is only one. So there will need to be a little Java refacroring.
Because of #1472, the two outputs will probably be limited to the same device. But that is the kind of thing we want to experiment with in this new dual-output test.
https://issuetracker.google.com/issues/219763493, but do not know whether this was solved in the end?
b/219763493 is a MIDI bug. The "two device bug" was resolved here.
Something new after 7 months ? :P Did you even tried why it was not working for me ?
@philburk I am stil curious if this will ever be posssible... I wanted to do Output monitoring to implement it in audio mixer app or any my future dj app :) , The idea is that I connect usb audio interface that support multiple outputs . Lets say someone buys "MOTU M2 2x2 USB-C Audio Interface" and connects to android tablet. Can I open two output streams so I can send different audio data to each ?
I found also this one that should have two outputs: STERNBACH Professional 2 Channel Audio Interface USB-C