public bool BufferFresh(int interfaceNumber) { if (MixCastAV.checkStartedAudioDecodeAsync(audAsyncDec) == 0) { int res = MixCastAV.isBufferFreshAudioDecodeAsync(audAsyncDec, interfaceNumber); if (res == -2) { Debug.LogError("The async audio decode interface buffer is not ready because it has not yet started."); } #if _DEBUG Debug.LogWarning(string.Format("Buffer Freshness: {0} - {1}", (res >= 0 ? "Yes" : "No"), interfaceNumber)); #endif return(res == 0 ? true : false); } else { return(false); } }