Esempio n. 1
0
 public void Play()
 {
     if (MixCastAV.startAudioDecodeAsync(audAsyncDec) < 0)
     {
         Debug.LogError("Failed Starting Audio Device Async Interface." + audAsyncDec);
         startRun = false;
     }
     else
     {
         startRun = true;
     }
 }
Esempio n. 2
0
 //do not call this more than once when it is running
 protected void Play()
 {
     if (isRunning == false)
     {
         if (MixCastAV.startAudioDecodeAsync(audAsyncDec) < 0)
         {
             Debug.LogError("Failed Starting Audio Device Async Interface." + audAsyncDec);
             isRunning = false;
         }
         else
         {
             //Debug.LogWarning( "Playing audio" );
             isRunning = true;
             //Debug.LogWarning( "audio decode started for: " + (int)audAsyncDec );
         }
     }
 }