Giter Site home page Giter Site logo

swipswaps / wwiseunityaudio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arsysnet/wwiseunityaudio

0.0 1.0 0.0 6.33 MB

Very simple tool for Unity to convert a project with Wwise to Unity Audio in order to make WebGL builds.

License: GNU General Public License v3.0

C# 100.00%

wwiseunityaudio's Introduction

WwiseUnityAudio

Very simple tool for Unity to convert a project with Wwise to Unity Audio in order to make WebGL builds.

The objective of this tool isn't to reproduce Wwise but to provide a way to have a project building for WebGL. You made a game jam with Wwise and you are sad because you cannot put the web player on itch.io ? This tool is made for you.

Here is some Wwise projects that also have a WebGL build thanks to this small tool :

Limitations :

  • Only works for 2D projects (meaning 2D audio) for now
  • Since WebGL doesn't support multithreading, audio filters like reverberation are not supported
  • Not all Wwise features are implemented (There are no switches, no states etc.)

Installation :

  • Clone this repository or download the asset package here : https://goo.gl/BCxPY7
  • Copy the WebGLSupport folder or open the unity asset package in your project

Instructions :

You can convert your Unity Wwise project into a Unity Audio only project with the following steps :

  • Replace all calls to Wwise (I.E AkSoundEngine.PostEvent()) by AudioEventManager calls (AudioEventManager.PostEvent())
// Replace
public void OnGameBegin()
{
   AkSoundEngine.PostEvent("Music_Play", this.gameobject);
}

// With
public void OnGameBegin()
{
   AudioEventManager.PostEvent("Music_Play", this.gameobject);
}
  • In you first scene, put in the hierarchy the AudioEventManager prefab and toogle 'Unity Audio'

  • With the help of the event editor, try to reproduce all events and RTPCs

  • Finally, switch to WebGL platform and move the Wwise folder out of the assets folder just for the build
  • Enjoy your WebGL build (and don't forget to put the Wwise folder back into your assets folder)

wwiseunityaudio's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.