You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
601 B
28 lines
601 B
using UnityEngine;
|
|
|
|
namespace UMP
|
|
{
|
|
public class UMPAudioOutput : AudioOutput
|
|
{
|
|
/*
|
|
* Example how to get audio output data on desktop platforms (Win, Mac, Linux),
|
|
* to use it uncomment code below
|
|
*/
|
|
|
|
private void Awake()
|
|
{
|
|
//OutputDataListener += OnOutputData;
|
|
}
|
|
|
|
private void OnDestroy()
|
|
{
|
|
//OutputDataListener -= OnOutputData;
|
|
}
|
|
|
|
private void OnOutputData(float[] data, AudioChannels channels)
|
|
{
|
|
Debug.Log("Handle audio output data");
|
|
}
|
|
}
|
|
}
|