Microsoft DirectX 9.0 SDK Update (October 2004)

WaveFormat.SamplesPerSecond Property

Language:

Note: This documentation is preliminary and is subject to change.

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

Definition

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);

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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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