Copyright © 2001-2016 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]

control.GetSampleRate (

nPlayer as Integer

) as Long


 

[C++]

long control.GetSampleRate (

short nPlayer

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

 

 

Return value

 

The sample rate rate expressed in samples per second.