This method of the DirectSoundBuffer Class retrieves the frequency, in samples per second, at which the buffer is being played. This value will be in the range of 100-100,000.
public int getFrequency();
Returns the frequency at which the audio buffer is being played.