by
84k 18
0
5
93k
0
Top 1% !
Pearl of Wisdom
Tagged
Specified
Tuned
Popularity: 25273rd place

Published on:

Architecturex86_64
InputModifier1Out
InputName0from
InputName1to
InputType0Int16
InputType1Int32
LanguageC#
MethodNameConvert
OutputTypevoid
Windows VersionWindows7

Convert: Converts a signed 16-bit integer sample            into a 32-bit signed integer sample.

Converts a signed 16-bit integer sample
  into a 32-bit signed integer sample.

 
<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/1382825/Convert--Converts-a-signed-16-bit-intege?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 signed 16-bit integer sample /// into a 32-bit signed integer sample. /// </summary> /// /// <param name="from">The original sample.</param> /// <param name="to">The resulting sample.</param> /// public static void Convert(Int16 from, out Int32 to) { to = (byte)(((from) >> 8) + 128); }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus