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
Hello.
I am making a game in which four people play against each other at the same time.
There are objects that make sounds in the space, and the player can move around the space freely.
I want to output the sound that can be heard at each player's location to each player's headphones in stereophonic sound, but I can't.
My guess is AkSoundEngine.SetActiveListeners ();
I think it is possible to link the headphone with the object that becomes the listener by using, but error CS0117: ‘SetActiveLisners’ does not contain a definition for ‘AkSoundEngine’ error occurs.

This is the program.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ListnerControl: MonoBehaviour
{

 
    // Start is called before the first frame update

    public void Start ()
    {
        
        string nameOfDevice = "Headphone_Name)";

        // Get ID of it
        uint IDofDevice = AkSoundEngine.GetDeviceIDFromName (nameOfDevice);
       
        // Create new Output Setting
        AkOutputSettings newOutput = new AkOutputSettings ("Speaker", ID ofDevice);
        
    
        // Add the Output
        AkSoundEngine.AddOutput (newOutput);
    
        AkSoundEngine.SetActiveListeners ();
    }
    // Update is called once per frame
    void Update ()
    {

    }
}

Please Help me.
I am Japanese. This text uses Google Translate. Please forgive me for the inconvenient English.
in General Discussion by 拓哉 (100 points)

Please sign-in or register to answer this question.

...