![]() |
![]() |
![]() |
WaveFormat.SamplesPerSecond Property |
Language: |
Retrieves and sets the sample rate, in samples per second (hertz), for the format type.
Visual Basic .NET Public Property SamplesPerSecond As Integer C# public int SamplesPerSecond { get; set; } Managed C++ public: __property int get_SamplesPerSecond();
public: __property void set_SamplesPerSecond(int);JScript .NET public function get SamplesPerSecond() : int
public function set SamplesPerSecond(int);
System.Int32 . The sample rate, in samples per second (hertz), for the format type.
This property is read/write.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center