Exemplo n.º 1
0
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.Audio.AudioPlayableOutput o;
         o = new UnityEngine.Audio.AudioPlayableOutput();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Exemplo n.º 2
0
 static public int ctor_s(IntPtr l)
 {
     try {
         UnityEngine.Audio.AudioPlayableOutput o;
         o = new UnityEngine.Audio.AudioPlayableOutput();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 3
0
        public static AudioPlayableOutput Create(PlayableGraph graph, string name, AudioSource target)
        {
            PlayableOutputHandle handle;

            if (!AudioPlayableGraphExtensions.InternalCreateAudioOutput(ref graph, name, out handle))
            {
                return(AudioPlayableOutput.Null);
            }

            AudioPlayableOutput output = new AudioPlayableOutput(handle);

            output.SetTarget(target);

            return(output);
        }
Exemplo n.º 4
0
        public static AudioPlayableOutput Create(PlayableGraph graph, string name, AudioSource target)
        {
            PlayableOutputHandle handle;
            AudioPlayableOutput  result;

            if (!AudioPlayableGraphExtensions.InternalCreateAudioOutput(ref graph, name, out handle))
            {
                result = AudioPlayableOutput.Null;
            }
            else
            {
                AudioPlayableOutput audioPlayableOutput = new AudioPlayableOutput(handle);
                audioPlayableOutput.SetTarget(target);
                result = audioPlayableOutput;
            }
            return(result);
        }
 private static PlayableOutput CreateAudioOutput(PlayableGraph graph, string name)
 {
     return((PlayableOutput)AudioPlayableOutput.Create(graph, name, null));
 }
 public void SetEvaluateOnSeek(bool value)
 {
     AudioPlayableOutput.InternalSetEvaluateOnSeek(ref this.m_Handle, value);
 }
 public bool GetEvaluateOnSeek()
 {
     return(AudioPlayableOutput.InternalGetEvaluateOnSeek(ref this.m_Handle));
 }
 public void SetTarget(AudioSource value)
 {
     AudioPlayableOutput.InternalSetTarget(ref this.m_Handle, value);
 }
 public AudioSource GetTarget()
 {
     return(AudioPlayableOutput.InternalGetTarget(ref this.m_Handle));
 }
Exemplo n.º 10
0
 private static void InternalSetTarget(ref PlayableOutputHandle output, AudioSource target)
 {
     AudioPlayableOutput.INTERNAL_CALL_InternalSetTarget(ref output, target);
 }
Exemplo n.º 11
0
 private static AudioSource InternalGetTarget(ref PlayableOutputHandle output)
 {
     return(AudioPlayableOutput.INTERNAL_CALL_InternalGetTarget(ref output));
 }