Hololight Stream allows Unity audio to be streamed to a connected client device. For more information about using Audio in Unity, see here.
To ease integration, an example scene has been provided to illustrate how to use Hololight Stream to stream Unity audio to the client device. The example implements a single audio source with basic functionality. Multiple sources with more complex functionality can also be added for transmitting audio.
⚠️ Please note that currently audio stream system only allows usage of mono or stereo channels, 48KHZ and dsp buffer size of 256, 512 or 1024.
The following steps explain how to enable this example:
- Add the
Hololight Stream Examples
package to the Unity Project. - Import the
Audio Stream
sample into the project. - Add an
Audio Listener
to the main camera. If one already exists, move to the next step. - Add the
AudioStreamer.cs
component to the main camera. - Add the
AudioStreamExample
prefab to the scene. - Expand the
AudioStreamExample
game object and open theStaticAudioSource1
within the Inspector. - Set the desired
Audio Clip
.