MixedRealityToolkit icon indicating copy to clipboard operation
MixedRealityToolkit copied to clipboard

MicStreamSelector doesn't work as expected when "ALREADY_RUNNING"

Open vahpy opened this issue 4 years ago • 1 comments

At the link below, for ALREADY_RUNNING error code, the comment says '// No need to start if it's already running.', however it's not true per my experience. I used MRTK-Unity example source code, which in ALREADY_RUNNING status it doesn't call StartStream which leads to empty buffer error, but if it calls StartStream even the status is ALREADY_RUNNING, it works as expected. So the quick fix for that example is simple (https://github.com/microsoft/MixedRealityToolkit-Unity/pull/10348), but I think it is not what you expected from the code. I'm using latest version of MRTK-Unity (2.7.2) and Unity (2020.3.24f1).

https://github.com/microsoft/MixedRealityToolkit/blob/main/Input/MicStreamSelector/Source/MicStreamSelector.cpp

vahpy avatar Dec 03 '21 04:12 vahpy

@vahpy Have you solved this problem?

shoukailiang avatar Dec 10 '22 14:12 shoukailiang