|
BitsPerSample Enumeration
|
Typical bit sizes supported by wave files.
Namespace: GSF.MediaAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax public enum BitsPerSample
Public Enumeration BitsPerSample
public enum class BitsPerSample
GSF.Media.BitsPerSample = function();
GSF.Media.BitsPerSample.createEnum('GSF.Media.BitsPerSample', false);
Members Member name | Value | Description |
---|
Bits8 | 8 | 8-bits per sample |
Bits16 | 16 | 16-bits per sample |
Bits24 | 24 | 24-bits per sample |
Bits32 | 32 | 32-bits per sample |
Remarks
Strictly speaking, “bits-per-sample” describes the total number of bits used
to encode the amplitude (or volume) of a sampled signal. The following table
describes a few typical bit ranges and their possible resolution:
Bit range | Resolution |
---|
8-bits (1 Byte) | 0 to 255 |
16-bits (2 Bytes) | -32,768 to 32,767 |
24-bits (3 Bytes) | -8,388,608 to 8,388,607 |
32-bits (4 Bytes) | -2,147,483,648 to 2,147,483,647 |
The net result is that more bits you use, the more resolution you can achieve in
amplitude; hence “more bits = better sound quality” however you have to compromise
for technical constraints because “more bits = more required space”.
See Also