Copyright © 2005-2019 MultiMedia Soft

GetSampleRate method

Previous pageReturn to chapter overviewNext page

Remarks

 

Gets the sample rate applied to DirectSound buffer during playback. The sample rate can be modified through the SetSampleRate method.

 

 

Syntax

 

[Visual Basic]

Public Function GetSampleRate (

nPlayerIndex as Int16

) as Int32


 

[C#]

public Int32 GetSampleRate (

Int16 nPlayerIndex

);


 

[C++]

public: Int32 GetSampleRate (

Int16 nPlayerIndex

);


 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player

 

 

Return value

 

The sample rate rate expressed in samples per second.