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.

+1 vote

Hello dear Forum,

EDIT: i already found the solution to my problem - i just thought i might leave the question for other people who might have the same problem!
SOLUTION: you need to register a gameobject and add it to the default listener before you can post an event for it: "ak.soundengine.registerGameObj" and "ak.soundengine.setDefaultListeners
"
(if my solution is faulty please let me know!)


original question:

i want to use the waapi to play sounds / post events which are called by Processing, but i just can't seem to do it.

for testing purposes i used the provided python sample script (before moving on to processing) from the waapi samples page, and the getInfo response worked just fine.

when i try to run the python script with the postEvent command (code below)

import sys
import os

import requests
import json
import codecs

payload = {
    'uri': "ak.soundengine.postEvent",
    'options': {},
    'args': {
    'event': "ConnectionTest",
    'gameObject': 1
    }
}

try:
    r = requests.post("http://localhost:8090/waapi", data=json.dumps(payload))
    print(r.status_code, r.reason)
    print(r.text.encode('utf8', 'replace'))
except:
    print("Unable to connect to Waapi: Is Wwise running and Wwise Authoring API enabled?")

i do get a correct response:  (200, 'OK') {"return":34}

BUT no sound is played in Wwise...i have no idea why not.

Can somebody give me a hint on what i am missing here? :)
thank you very much

closed with the note: Solution Found
in General Discussion by David Z. (150 points)
closed by David Z.
...