This page explains an example on how to use the Wwise Authoring API in C++. It also contains the library code supporting the WAMP protocol used by Wwise, which you can use in your own C++ project.
The Visual Studio solution is located in "samples/WwiseAuthoringApi/cpp/SampleClient". You must install the Wwise SDK to access it.
Simply open SampleClient.sln and build the solution.
|
Note: This example requires Visual Studio 2013 (or more recent). |
The build for OS X uses premake4. You can build with: "samples/WwiseAuthoringApi/cpp/SampleClient/SampleClient/mac_build.sh"
You can edit the script to build any of the following targets:
This sample runs on the command line. By default, when no parameter is provided, it runs the getInfo RPC call to Wwise Authoring and displays basic information.
There is a more extended example available, which you can run by using the command line parameter TestWampClient.
This sample contains modified versions of the POCO WAMP (itself based on Autobahn|Cpp) and civetweb libraries. The class Client
provides a simple interface to our API, internally using the "session" class to connect to Wwise Authoring using the WAMP protocol. Feel free to use the Client
as-is or modify it to better suit your needs. You can also use the "session" class directly.
Out of convenience, the Client
class uses blocking calls (by calling std::future::get). Therefore, the caller thread gets blocked until Wwise Authoring provides a result. The "session" class returns std::future for thread synchronization, which means that you could implement your own asynchronous version of the Client
class if it better suits your needs.
Logging is optional, but it often helps the debugging process. You can call Logger::Get()->SetLoggerFunction(logFunction)
to provide your own logging function.
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요