Microsoft SDK for Java

setDopplerFactor

This method of the DirectSound3dListener Class sets the current Doppler effect factor.

Syntax

public void setDopplerFactor(float dopplerFactor, int applyFlag);

Parameters

dopplerFactor New Doppler factor value.
applyFlag Value indicating when the setting should be applied. This value must be one of the following:

DS3D_DEFERRED
DS3D_IMMEDIATE


Remarks

This Doppler factor has a range of 0 (no Doppler effects) to 10.0 (10 times the Doppler effects found in the physical world). The default value is DS3D_DEFAULTDOPPLERFACTOR (1.0).

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