nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Data.Wave / Sample

Sample

Full name Microsoft.VisualBasic.Data.Wave.Sample Assembly Microsoft.VisualBasic.Data.Wave Members 24

01 Syntax

Microsoft.VisualBasic.Data.Wave.Sample

02 Methods

NameOverloadsSummary
Parse8Bit 1 8-bit unsigned PCM: value [0,255] → normalized [-1.0, +1.0]
Parse16Bit 1 16-bit signed PCM: value [-32768,32767] → normalized [-1.0, +1.0]
Parse24Bit 1 24-bit signed PCM (3 bytes per sample, little-endian).
Parse32BitPCM 1 32-bit signed PCM (integer): value [-2147483648, 2147483647] → normalized [-1.0, +1.0]
Parse32Bit 1 32-bit IEEE Float: already in range [1.0, -1.0], read directly.
Parse64Bit 1 64-bit IEEE Float (double): read as Double, cast to Single.
ParseALaw 1 G.711 A-law 8-bit encoding.
ParseMuLaw 1 G.711 μ-law 8-bit encoding.
Parse8BitSample 1 Read a single 8-bit PCM sample frame.
Parse16BitSample 1 Read a single 16-bit PCM sample frame.
Parse24BitSample 1 Read a single 24-bit PCM sample frame.
Parse32BitSample 1 Read a single 32-bit IEEE Float sample frame.
Parse32BitPCMSample 1 Read a single 32-bit PCM (integer) sample frame.
Parse64BitSample 1 Read a single 64-bit IEEE Float sample frame.
ParseALawSample 1 Read a single G.711 A-law sample frame.
ParseMuLawSample 1 Read a single G.711 μ-law sample frame.
ReadInt24Normalized 1 Read 3 bytes (little-endian) as a signed 24-bit integer, normalize to [-1.0, +1.0].
ToString 1

03 Properties

NameOverloadsSummary
left 1
right 1

04 Fields

NameOverloadsSummary
channels 2 Per-channel sample data, normalized to [-1.0, 1.0] for all formats.
ALawDecodeTable 1 G.711 A-law to 16-bit linear PCM decode table.
MuLawDecodeTable 1 G.711 μ-law to 16-bit linear PCM decode table.

05 Members

method Parse8Bit #
Parse8Bit(BinaryDataReader, Int32)

8-bit unsigned PCM: value [0,255] → normalized [-1.0, +1.0]

method Parse16Bit #
Parse16Bit(BinaryDataReader, Int32)

16-bit signed PCM: value [-32768,32767] → normalized [-1.0, +1.0]

method Parse24Bit #
Parse24Bit(BinaryDataReader, Int32)

24-bit signed PCM (3 bytes per sample, little-endian). Value [-8388608, 8388607] → normalized [-1.0, +1.0]

method Parse32BitPCM #
Parse32BitPCM(BinaryDataReader, Int32)

32-bit signed PCM (integer): value [-2147483648, 2147483647] → normalized [-1.0, +1.0]

method Parse32Bit #
Parse32Bit(BinaryDataReader, Int32)

32-bit IEEE Float: already in range [1.0, -1.0], read directly.

method Parse64Bit #
Parse64Bit(BinaryDataReader, Int32)

64-bit IEEE Float (double): read as Double, cast to Single.

method ParseALaw #
ParseALaw(BinaryDataReader, Int32)

G.711 A-law 8-bit encoding.

method ParseMuLaw #
ParseMuLaw(BinaryDataReader, Int32)

G.711 μ-law 8-bit encoding.

method Parse8BitSample #
Parse8BitSample(BinaryDataReader, Int32)

Read a single 8-bit PCM sample frame.

method Parse16BitSample #
Parse16BitSample(BinaryDataReader, Int32)

Read a single 16-bit PCM sample frame.

method Parse24BitSample #
Parse24BitSample(BinaryDataReader, Int32)

Read a single 24-bit PCM sample frame.

method Parse32BitSample #
Parse32BitSample(BinaryDataReader, Int32)

Read a single 32-bit IEEE Float sample frame.

method Parse32BitPCMSample #
Parse32BitPCMSample(BinaryDataReader, Int32)

Read a single 32-bit PCM (integer) sample frame.

method Parse64BitSample #
Parse64BitSample(BinaryDataReader, Int32)

Read a single 64-bit IEEE Float sample frame.

method ParseALawSample #
ParseALawSample(BinaryDataReader, Int32)

Read a single G.711 A-law sample frame.

method ParseMuLawSample #
ParseMuLawSample(BinaryDataReader, Int32)

Read a single G.711 μ-law sample frame.

method ReadInt24Normalized #
ReadInt24Normalized(BinaryDataReader)

Read 3 bytes (little-endian) as a signed 24-bit integer, normalize to [-1.0, +1.0].

field channels #
channels

Per-channel sample data, normalized to [-1.0, 1.0] for all formats.

field ALawDecodeTable #
ALawDecodeTable

G.711 A-law to 16-bit linear PCM decode table. Decoded values are in the range [-32256, 32256].

field MuLawDecodeTable #
MuLawDecodeTable

G.711 μ-law to 16-bit linear PCM decode table. Decoded values are in the range [-32124, 32124].

field channels overload 2 #
channels
property left #
left
property right #
right
method ToString #
ToString()