by
84k 17
0
4
48k
0
Top 1% !
Tagged
Specified
Tuned
Popularity: 76143rd place

Published on:

Architecturex86_64
InputModifier1Out
InputName0from
InputName1to
InputType0byte
InputType1Int16
LanguageC#
MethodNameConvert
OutputTypevoid
Windows VersionWindows7

Convert: Converts a unsigned 8-bit byte sample            into a 16-bit short integer sample.

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

blog comments powered by Disqus