menu
Wwise
arrow_drop_down
Strata
arrow_drop_down
Solutions
arrow_drop_down
Apprendre
arrow_drop_down
Communauté
arrow_drop_down
Documentation
arrow_drop_down
Aide
arrow_drop_down
2024.1.6.8842
2023.1.14.8770
2025.1.0.8897
2022.1.19.8584
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
The following code shows how you can set the current state for a given state group:
AK::SoundEngine::SetState( AK::STATES::PLAYERHEALTH::GROUP, AK::STATES::PLAYERHEALTH::STATE::NORMAL );
The AK::SoundEngine::SetState() method also accepts strings (Unicode or Ansi) instead of IDs. In this case, you would specify the names of the State Group and State, as defined by the Wwise user:
AK::SoundEngine::SetState( L"PlayerHealth", L"Normal" );
In the sample application, you can change the current state for the PlayerHealth
state group by using the corresponding dropdown list in the General section of the dialog.
Refer to Integration Details - States for more information.
info
|
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