RTPCs let the sound engine compute a property's value by evaluating a curve, defined by the Wwise user, for the X value that corresponds to a parameter within the game. For example, the following code sets the value of the "RPM" game parameter:
// Set the game parameter's value using its name. We could use its // ID instead, AK::GAME_PARAMETERS::RPM (from Wwise_IDs.h) AK::SoundEngine::SetRTPCValue( L"RPM", (AkRtpcValue)nRPM );
In the sample program you can experiment with RTPCs in two ways:
Play_Engine
event, click Post, then move the RPM slider. This changes the value of the RPM game parameter which the engine sound uses to alter its volume and pitch propertiesRefer to Integration Details - RTPCs for more details.
|
Note: This sample code comes from the Sound Engine Integration Sample Project available in the Samples section. Refer to Integration Demo Sample for more information. |
Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !
Visitez notre page d'AideEnregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !
Partir du bon pied avec Wwise