Share via


WaveFormat.BitsPerSample Property (Microsoft.DirectX.DirectSound)

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.