Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes
By some reason the float is not setting the RTPC value, I tried the code in a different version of wwise and it seems that it is not working on wwise 2021.1.2
in General Discussion by Octavio B. (100 points)

1 Answer

0 votes

Hi Octavio, 

Thanks for letting us know. I just tested it myself but I don't seem to have any problems using Wwise-types to set RTPCs. 
If the problem persists, please use the Bug Reporter located in the Wwise Launcher which should ask you for relevant information needed to identify the problem. 

by Mads Maretty S. (Audiokinetic) (40.2k points)
What am I doing wrong? I am calculating the distance of the object and I am using that float to set that value to the parameter, however it doesn´t work, The distance is being calculated but it doesn´t change the parameter

 [SerializeField] AK.Wwise.RTPC myDistanceParameter;
    [SerializeField] float distance;
    [SerializeField] GameObject player;
    [SerializeField] GameObject audioParameter;
    
    
    void FixedUpdate()
    {
        if (player == null)
        {
            PlayerCheck();

        }
        else PlayerDistance();

    }

   
    


    void PlayerCheck()
    {

        player = GameObject.FindGameObjectWithTag("Player");


    }

    void PlayerDistance()
    {
        distance = Vector3.Distance(gameObject.transform.position, player.transform.position);
        myDistanceParameter.SetValue(audioParameter, distance);



    }
...