WaveFormat.SamplesPerSecond Property

Language:

Retrieves and sets the sample rate, in samples per second (hertz), for the format type.

Definition

Visual Basic Public Property SamplesPerSecond As Integer
C# public int SamplesPerSecond { get; set; }
C++ public:
property int SamplesPerSecond {
        int get();
        void set(int value);
}
JScript public function get SamplesPerSecond() : int
public function set SamplesPerSecond(int);

Property Value

System.Int32
The sample rate, in samples per second (hertz), 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 SamplesPerSecond property should be a common value such as 8.0 kHz, 11.025 kHz, 22.05 kHz, or 44.1 kHz.


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