WaveFormat.BitsPerSample Property

Language:

Retrieves and sets the bits per sample for the format type.

Definition

Visual Basic Public Property BitsPerSample As Short
C# public short BitsPerSample { get; set; }
C++ public:
property short BitsPerSample {
        short get();
        void set(short value);
}
JScript public function get BitsPerSample() : short
public function set BitsPerSample(short);

Property Value

System.Int16
Bits per sample for the format type.

This property is read/write. 

Remarks

Because Microsoft DirectX 9.0 for Managed Code only supports a FormatTag of WaveFormatTag.Pcm, the value of the BitsPerSample property should be equal to 8 or 16.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center