by
84k 18
0
5
76k
0
Top 1% !
Pearl of Wisdom
Tagged
Specified
Refined
Popularity: 34419th place

Published on:

Architecturex86_64
InputName0from
InputName1to
InputType0Int32[]
InputType1Int32[]
LanguageC#
MethodNameConvert
OutputTypevoid
Windows VersionWindows7

Convert: Converts a array of signed 32-bit integer samples            into a array of 32-bit floating point samples.

Converts a array of signed 32-bit integer samples
  into a array of 32-bit floating point samples.

 
<param name="from">The original sample.</param>
<param name="to">The resulting sample.</param>
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1382848/Convert--Converts-a-array-of-signed-32-b?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
/// <summary> /// Converts a array of signed 32-bit integer samples /// into a array of 32-bit floating point samples. /// </summary> /// /// <param name="from">The original sample.</param> /// <param name="to">The resulting sample.</param> /// public static void Convert(Int32[] from, Int32[] to) { for (int i = 0; i < from.Length; i++) to[i] = (int)((double)from[i] * 0x7FFFFFFF); }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus