MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

MicStream error on MicStartRecording

Open onsterion opened this issue 9 years ago • 12 comments

Hi All,

Im testing the MicStreamDemo , works perfect in Windows PC but in Hololens when i try to use: "CheckForErrorOnCall(MicStream.MicStartRecording(SaveFileName, false));".

I have this error:
"Exception thrown: 'System.Runtime.InteropServices.SEHException' in Assembly-CSharp.dll An exception of type 'System.Runtime.InteropServices.SEHException' occurred in Assembly-CSharp.dll but was not handled in user code External component has thrown an exception. "

And in the "outputPath = MicStream.MicStopRecording();" I receive: "YouArentRecordingRightNow"

Unity Version: 2017.1.1p1 x64 Hololens System: Full updated 09/19/2017

Any suggestion?

Regards.-

onsterion avatar Sep 19 '17 15:09 onsterion

Just FYI, that dll hasn't been well maintained and I'm planning on removing it from the core MRTK. I don't believe it's passing WACK compliance at the moment.

See https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/987

StephenHodgson avatar Sep 19 '17 15:09 StephenHodgson

@StephenHodgson do you have, or know of, a replacement for the microphone input if you remove it?

Ziugy avatar Sep 19 '17 16:09 Ziugy

@Ziugy No. But a lot of that stuff is written into unity already. I don't mind keeping it, but it needs to pass WACK to keep included.

StephenHodgson avatar Sep 19 '17 18:09 StephenHodgson

Thanks StephenHodgson for the quick response.

onsterion avatar Sep 20 '17 14:09 onsterion

Unity's Microphone class is a lot more limited than the plugin. Getting it to pass WACK would be much preferred to removing it.

joekellyms avatar Sep 20 '17 17:09 joekellyms

@joekellyms, yeah I agree but getting PRs addressed and updated in the main toolkit seems impossible.

When it passes WACK again, we will move it back into the core toolkit.

StephenHodgson avatar Sep 20 '17 17:09 StephenHodgson

Hi @StephenHodgson I'm in the same situation as @onsterion, same versions, same error (I tried multiple versions actually, without success) and I don't find any other way to record microphone input from Hololens, would you have a solution or a hint about how to do this ? Should I try from MicStartStream (which works apparently), from source code or am I missing something ? Thank you.

tberthin avatar Sep 26 '17 17:09 tberthin

Well, I know this doesn't help, but I've got plans on removing this from the core toolkit cause it isn't passing WACK.

StephenHodgson avatar Sep 26 '17 17:09 StephenHodgson

@StephenHodgson Could it be possible to access data from MicStartStream (since variable "keepData" is described as "If true, all data will stay in the queue,...") without modifying MicStreamSelector.cpp (because I don't feel being able to) in order to record that data ? Sorry for insisting I'm a bit confused failing to record that mic.

tberthin avatar Sep 26 '17 17:09 tberthin

I experience this when i do NOT have the Music Library capability set. If I enable the bit, the application works as expected. The simple fix is to enable Music Library capability.

I am also filing an issue on the plugin that the native code side does not appear to be doing the right thing.

david-c-kline avatar Nov 29 '17 22:11 david-c-kline

Fixed via #1670 and Microsoft/MixedRealityToolkit#131

keveleigh avatar Feb 20 '18 20:02 keveleigh

We will close these once they make it into the release master branch.

StephenHodgson avatar Feb 20 '18 22:02 StephenHodgson