WaveFormat.SamplesPerSecond Property |
Language: |
Retrieves and sets the sample rate, in samples per second (hertz), for the format type.
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);
System.Int32
This property is read/write.
The sample rate, in samples per second (hertz), for the format type.
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