Monday, October 23, 2017

Audio Resources

Hey Everyone, here's a link to some audio resources, as well as the project that I was working from:
https://drive.google.com/open?id=0B-K7b5j-kvt1Rm93c1pvLXQyZEE

The Unity project was made in 2017.2, so it probably won't work for everyone.

Here are a few links to Audio Spatializer plug ins.  Each are done a little differently; I'm fond of Steam Audio for VR applications.

https://valvesoftware.github.io/steam-audio/index.html
https://developer.oculus.com/
https://developers.google.com/vr/concepts/spatial-audio

I just realized that I didn't cover Ambisonics, which is another interesting component of 3D audio.  Ambisonics work a bit differently then normal audio sources, simulating a 3D sound field, rather than broadcasting the same audio in all directions.  Unfortunately for mobile applications, ambisonic file sizes are quite large.  I encourage you to check out some of the examples on the Oculus website.

Also, in order to pause/resume audio in Vuforia, I added the following lines to OnTrackingFound() in the DefaultTrackableEventHandler script...

AudioSource aSource = GetComponentInChildren<AudioSource>(); 
if (aSource.time >= 0.1f) {
   aSource.UnPause();
} else {
   aSource.Play();
}


And the following lines to OnTrackingLost():

AudioSource aSource = GetComponentInChildren<AudioSource>();

aSource.Pause();

No comments:

Post a Comment