This commit is contained in:
niko
2026-04-08 23:40:05 +02:00
parent d6894bcbc7
commit 18dc73f922
7750 changed files with 1795369 additions and 0 deletions
@@ -0,0 +1,20 @@
using System;
namespace Cpp2IlInjected
{
// Token: 0x02000009 RID: 9
internal class AddressAttribute : Attribute
{
// Token: 0x0400000D RID: 13
public string RVA;
// Token: 0x0400000E RID: 14
public string Offset;
// Token: 0x0400000F RID: 15
public string VA;
// Token: 0x04000010 RID: 16
public string Slot;
}
}
@@ -0,0 +1,14 @@
using System;
namespace Cpp2IlInjected
{
// Token: 0x0200000E RID: 14
internal class AnalysisFailedException : Exception
{
// Token: 0x06000022 RID: 34 RVA: 0x0000211A File Offset: 0x0000031A
public AnalysisFailedException(string message)
: base(message)
{
}
}
}
@@ -0,0 +1,17 @@
using System;
namespace Cpp2IlInjected
{
// Token: 0x0200000B RID: 11
internal class AttributeAttribute : Attribute
{
// Token: 0x04000012 RID: 18
public string Name;
// Token: 0x04000013 RID: 19
public string RVA;
// Token: 0x04000014 RID: 20
public string Offset;
}
}
@@ -0,0 +1,11 @@
using System;
namespace Cpp2IlInjected
{
// Token: 0x0200000A RID: 10
internal class FieldOffsetAttribute : Attribute
{
// Token: 0x04000011 RID: 17
public string Offset;
}
}
@@ -0,0 +1,11 @@
using System;
namespace Cpp2IlInjected
{
// Token: 0x0200000C RID: 12
internal class MetadataOffsetAttribute : Attribute
{
// Token: 0x04000015 RID: 21
public string Offset;
}
}
@@ -0,0 +1,11 @@
using System;
namespace Cpp2IlInjected
{
// Token: 0x0200000D RID: 13
internal class TokenAttribute : Attribute
{
// Token: 0x04000016 RID: 22
public string Token;
}
}
@@ -0,0 +1,4 @@
using System;
using System.Reflection;
[assembly: AssemblyVersion("0.0.0.0")]
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{79F1A0F0-4A5C-4735-AE60-B98C0B426274}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>RecRoom.Streamingaudio.Runtime</RootNamespace>
<AssemblyName>RecRoom.Streamingaudio.Runtime</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoStdLib>true</NoStdLib>
</PropertyGroup>
<ItemGroup />
<ItemGroup>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Compile Include="Cpp2IlInjected\AddressAttribute.cs" />
<Compile Include="Cpp2IlInjected\AnalysisFailedException.cs" />
<Compile Include="Cpp2IlInjected\AttributeAttribute.cs" />
<Compile Include="Cpp2IlInjected\FieldOffsetAttribute.cs" />
<Compile Include="Cpp2IlInjected\MetadataOffsetAttribute.cs" />
<Compile Include="Cpp2IlInjected\TokenAttribute.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RecRoom\StreamingAudio\IAudioOutputDevice.cs" />
<Compile Include="RecRoom\StreamingAudio\IStreamingAudioImplementation.cs" />
<Compile Include="RecRoom\StreamingAudio\StreamInfo.cs" />
<Compile Include="RecRoom\StreamingAudio\StreamingAudio.cs" />
<Compile Include="RecRoom\StreamingAudio\WindowsStreamingAudio.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CSCore\CSCore.csproj">
<Project>{79f1a0f0-4a5c-4735-ae60-b98c0b42624c}</Project>
<Name>CSCore</Name>
</ProjectReference>
<ProjectReference Include="..\mscorlib\mscorlib.csproj">
<Project>{79f1a0f0-4a5c-4735-ae60-b98c0b426251}</Project>
<Name>mscorlib</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
@@ -0,0 +1,52 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace RecRoom.StreamingAudio
{
// Token: 0x02000003 RID: 3
[Token(Token = "0x2000003")]
[StructLayout(3)]
public interface IAudioOutputDevice
{
// Token: 0x17000002 RID: 2
// (get) Token: 0x06000003 RID: 3
[Token(Token = "0x17000002")]
string FriendlyName
{
[Token(Token = "0x6000003")]
[Address(Slot = "0")]
get;
}
// Token: 0x17000003 RID: 3
// (get) Token: 0x06000004 RID: 4
[Token(Token = "0x17000003")]
bool IsDefaultDevice
{
[Token(Token = "0x6000004")]
[Address(Slot = "1")]
get;
}
// Token: 0x17000004 RID: 4
// (get) Token: 0x06000005 RID: 5
[Token(Token = "0x17000004")]
bool IsListening
{
[Token(Token = "0x6000005")]
[Address(Slot = "2")]
get;
}
// Token: 0x06000006 RID: 6
[Token(Token = "0x6000006")]
[Address(Slot = "3")]
StreamInfo StartListening(Action<ArraySegment<float>> callback);
// Token: 0x06000007 RID: 7
[Token(Token = "0x6000007")]
[Address(Slot = "4")]
void StopListening();
}
}
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace RecRoom.StreamingAudio
{
// Token: 0x02000002 RID: 2
[Token(Token = "0x2000002")]
[StructLayout(3)]
public interface IStreamingAudioImplementation
{
// Token: 0x17000001 RID: 1
// (get) Token: 0x06000001 RID: 1
[Token(Token = "0x17000001")]
bool IsSupported
{
[Token(Token = "0x6000001")]
[Address(Slot = "0")]
get;
}
// Token: 0x06000002 RID: 2
[Token(Token = "0x6000002")]
[Address(Slot = "1")]
IReadOnlyList<IAudioOutputDevice> GetOutputDevices();
}
}
@@ -0,0 +1,62 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace RecRoom.StreamingAudio
{
// Token: 0x02000004 RID: 4
[Token(Token = "0x2000004")]
[StructLayout(0, Size = 8)]
public struct StreamInfo
{
// Token: 0x17000005 RID: 5
// (get) Token: 0x06000008 RID: 8 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06000009 RID: 9 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x17000005")]
public int Channels
{
[Token(Token = "0x6000008")]
[Address(RVA = "0x2D90", Offset = "0x2190", VA = "0x180002D90")]
[CompilerGenerated]
get
{
return 0;
}
[Token(Token = "0x6000009")]
[Address(RVA = "0x2DB0", Offset = "0x21B0", VA = "0x180002DB0")]
[CompilerGenerated]
private set
{
}
}
// Token: 0x17000006 RID: 6
// (get) Token: 0x0600000A RID: 10 RVA: 0x00002068 File Offset: 0x00000268
// (set) Token: 0x0600000B RID: 11 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x17000006")]
public int SampleRate
{
[Token(Token = "0x600000A")]
[Address(RVA = "0xFBE0", Offset = "0xEFE0", VA = "0x18000FBE0")]
[CompilerGenerated]
get
{
return 0;
}
[Token(Token = "0x600000B")]
[Address(RVA = "0x13530", Offset = "0x12930", VA = "0x180013530")]
[CompilerGenerated]
private set
{
}
}
// Token: 0x0600000C RID: 12 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x600000C")]
[Address(RVA = "0x44F80", Offset = "0x44380", VA = "0x180044F80")]
public StreamInfo(int sampleRate, int channels)
{
}
}
}
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace RecRoom.StreamingAudio
{
// Token: 0x02000005 RID: 5
[Token(Token = "0x2000005")]
[StructLayout(3)]
public static class StreamingAudio
{
// Token: 0x17000007 RID: 7
// (get) Token: 0x0600000E RID: 14 RVA: 0x00002080 File Offset: 0x00000280
[Token(Token = "0x17000007")]
public static bool IsSupported
{
[Token(Token = "0x600000E")]
[Address(RVA = "0xF88B10", Offset = "0xF87510", VA = "0x180F88B10")]
get
{
return default(bool);
}
}
// Token: 0x0600000F RID: 15 RVA: 0x00002096 File Offset: 0x00000296
[Token(Token = "0x600000F")]
[Address(RVA = "0xF88980", Offset = "0xF87380", VA = "0x180F88980")]
public static IReadOnlyList<IAudioOutputDevice> GetOutputDevices()
{
return null;
}
// Token: 0x04000003 RID: 3
[Token(Token = "0x4000003")]
private static IStreamingAudioImplementation implementation;
}
}
@@ -0,0 +1,147 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using CSCore.CoreAudioAPI;
using CSCore.SoundIn;
using CSCore.Streams;
namespace RecRoom.StreamingAudio
{
// Token: 0x02000006 RID: 6
[Token(Token = "0x2000006")]
[StructLayout(3)]
public class WindowsStreamingAudio : IStreamingAudioImplementation
{
// Token: 0x17000008 RID: 8
// (get) Token: 0x06000010 RID: 16 RVA: 0x0000209C File Offset: 0x0000029C
[Token(Token = "0x17000008")]
public bool IsSupported
{
[Token(Token = "0x6000010")]
[Address(RVA = "0x4405A0", Offset = "0x43EFA0", VA = "0x1804405A0", Slot = "4")]
get
{
return default(bool);
}
}
// Token: 0x06000011 RID: 17 RVA: 0x00002096 File Offset: 0x00000296
[Token(Token = "0x6000011")]
[Address(RVA = "0xF88D00", Offset = "0xF87700", VA = "0x180F88D00", Slot = "5")]
public IReadOnlyList<IAudioOutputDevice> GetOutputDevices()
{
return null;
}
// Token: 0x06000012 RID: 18 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x6000012")]
[Address(RVA = "0xF88FE0", Offset = "0xF879E0", VA = "0x180F88FE0")]
public WindowsStreamingAudio()
{
}
// Token: 0x04000004 RID: 4
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000004")]
private List<WindowsStreamingAudio.AudioOutputDevice> audioSources;
// Token: 0x02000007 RID: 7
[Token(Token = "0x2000007")]
private class AudioOutputDevice : IAudioOutputDevice
{
// Token: 0x17000009 RID: 9
// (get) Token: 0x06000013 RID: 19 RVA: 0x00002096 File Offset: 0x00000296
[Token(Token = "0x17000009")]
public string FriendlyName
{
[Token(Token = "0x6000013")]
[Address(RVA = "0xF88960", Offset = "0xF87360", VA = "0x180F88960", Slot = "4")]
get
{
return null;
}
}
// Token: 0x1700000A RID: 10
// (get) Token: 0x06000014 RID: 20 RVA: 0x000020B4 File Offset: 0x000002B4
// (set) Token: 0x06000015 RID: 21 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x1700000A")]
public bool IsDefaultDevice
{
[Token(Token = "0x6000014")]
[Address(RVA = "0x651230", Offset = "0x64FC30", VA = "0x180651230", Slot = "5")]
[CompilerGenerated]
get
{
return default(bool);
}
[Token(Token = "0x6000015")]
[Address(RVA = "0x6C60C0", Offset = "0x6C4AC0", VA = "0x1806C60C0")]
[CompilerGenerated]
private set
{
}
}
// Token: 0x1700000B RID: 11
// (get) Token: 0x06000016 RID: 22 RVA: 0x000020CC File Offset: 0x000002CC
[Token(Token = "0x1700000B")]
public bool IsListening
{
[Token(Token = "0x6000016")]
[Address(RVA = "0x71D270", Offset = "0x71BC70", VA = "0x18071D270", Slot = "6")]
get
{
return default(bool);
}
}
// Token: 0x06000017 RID: 23 RVA: 0x000020E4 File Offset: 0x000002E4
[Token(Token = "0x6000017")]
[Address(RVA = "0xF88890", Offset = "0xF87290", VA = "0x180F88890", Slot = "7")]
public StreamInfo StartListening(Action<ArraySegment<float>> callback)
{
return default(StreamInfo);
}
// Token: 0x06000018 RID: 24 RVA: 0x000020FC File Offset: 0x000002FC
[Token(Token = "0x6000018")]
[Address(RVA = "0xF885B0", Offset = "0xF86FB0", VA = "0x180F885B0")]
private StreamInfo StartListening(int sampleRate, int bits, int channels, Action<ArraySegment<float>> callback)
{
return default(StreamInfo);
}
// Token: 0x06000019 RID: 25 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x6000019")]
[Address(RVA = "0xF888C0", Offset = "0xF872C0", VA = "0x180F888C0", Slot = "8")]
public void StopListening()
{
}
// Token: 0x0600001A RID: 26 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x600001A")]
[Address(RVA = "0xF88920", Offset = "0xF87320", VA = "0x180F88920")]
public AudioOutputDevice(MMDevice device, bool isDefault)
{
}
// Token: 0x04000005 RID: 5
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000005")]
private MMDevice device;
// Token: 0x04000006 RID: 6
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000006")]
private WasapiLoopbackCapture _loopbackCapture;
// Token: 0x04000007 RID: 7
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000007")]
private SoundInSource _soundInSource;
}
}
}