98 lines
5.2 KiB
C#
98 lines
5.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Photon.Voice.Unity;
|
|
using RecRoom.Async;
|
|
using RecRoom.Core;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Audio
|
|
{
|
|
// Token: 0x02002414 RID: 9236
|
|
[Token(Token = "0x2002414")]
|
|
[StructLayout(3)]
|
|
public class MicrophoneInputDetector : MonoBehaviour
|
|
{
|
|
// Token: 0x17002BA5 RID: 11173
|
|
// (get) Token: 0x0600FFF8 RID: 65528 RVA: 0x003BED34 File Offset: 0x003BCF34
|
|
// (set) Token: 0x0600FFF9 RID: 65529 RVA: 0x003BED48 File Offset: 0x003BCF48
|
|
[Token(Token = "0x17002BA5")]
|
|
public static bool DFIHNLNLPOL
|
|
{
|
|
[Token(Token = "0x600FFF8")]
|
|
[Address(RVA = "0x12A7A90", Offset = "0x12A6490", VA = "0x1812A7A90")]
|
|
get;
|
|
[Token(Token = "0x600FFF9")]
|
|
[Address(RVA = "0x12A7AD0", Offset = "0x12A64D0", VA = "0x1812A7AD0")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x0600FFFA RID: 65530 RVA: 0x003BED5C File Offset: 0x003BCF5C
|
|
[Token(Token = "0x600FFFA")]
|
|
[Address(RVA = "0x12A7970", Offset = "0x12A6370", VA = "0x1812A7970")]
|
|
public ICancelablePromise StartListening(Recorder OMPPDLLFOLK)
|
|
{
|
|
if (this.CILGOCKBPCG != 0)
|
|
{
|
|
ISchedulerPromise cilgockbpcg = this.CILGOCKBPCG;
|
|
this.CILGOCKBPCG = (ulong)0L;
|
|
}
|
|
Scheduler instance = SingletonMonoBehaviour.Instance;
|
|
MicrophoneInputDetector.MGELIHEKPIB mgelihekpib;
|
|
mgelihekpib.System.IDisposable.Dispose();
|
|
mgelihekpib.<>1__state = (int)((ulong)0L);
|
|
mgelihekpib.<>4__this = this;
|
|
mgelihekpib.recorder = OMPPDLLFOLK;
|
|
ISchedulerPromise schedulerPromise = instance.Run(this, mgelihekpib);
|
|
this.CILGOCKBPCG = schedulerPromise;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600FFFB RID: 65531 RVA: 0x003BEDBC File Offset: 0x003BCFBC
|
|
[Token(Token = "0x600FFFB")]
|
|
[Address(RVA = "0x12A7900", Offset = "0x12A6300", VA = "0x1812A7900")]
|
|
private IEnumerator<ISchedule> PANJGGGEBKA(Recorder LPAMLOIIBHO)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600FFFB)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1<RecRoom.Core.ISchedule> RecRoom.Audio.MicrophoneInputDetector::PANJGGGEBKA(Photon.Voice.Unity.Recorder)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
call:void(MGELIHEKPIB::System.IDisposable.Dispose, ldloc:MGELIHEKPIB(var_0))
|
|
stfld:MicrophoneInputDetector(MGELIHEKPIB::<>4__this, ldloc:MGELIHEKPIB(var_0), ldloc:MicrophoneInputDetector(this))
|
|
stfld:int32(MGELIHEKPIB::<>1__state, ldloc:MGELIHEKPIB(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0)))
|
|
stfld:Recorder(MGELIHEKPIB::recorder, ldloc:MGELIHEKPIB(var_0), ldloc:Recorder(LPAMLOIIBHO))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600FFFC RID: 65532 RVA: 0x003BEDE8 File Offset: 0x003BCFE8
|
|
[Token(Token = "0x600FFFC")]
|
|
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
|
|
public MicrophoneInputDetector()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400A9F2 RID: 43506
|
|
[Token(Token = "0x400A9F2")]
|
|
private const float PBPLKACEIJA = 1E-05f;
|
|
|
|
// Token: 0x0400A9F3 RID: 43507
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400A9F3")]
|
|
private ISchedulerPromise CILGOCKBPCG;
|
|
}
|
|
}
|