mirror of https://github.com/Washi1337/Emux.git
Added /unsafe
This commit is contained in:
parent
89a8795143
commit
c14296f2f3
|
@ -5,6 +5,10 @@
|
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -65,6 +65,7 @@ namespace Emux.NAudio
|
|||
AddSamples(_newSampleData, 0, length * sizeof(float));
|
||||
}
|
||||
|
||||
// Taken and modified from System.BitConverter
|
||||
[System.Security.SecuritySafeCritical]
|
||||
public unsafe static void GetBytes(float value, byte[] bytes) => GetBytes(*(int*)&value, bytes);
|
||||
[System.Security.SecuritySafeCritical]
|
||||
|
|
Loading…
Reference in New Issue