共用方式為


ARSKViewDelegate.DidOutputAudioSampleBuffer(ARSession, CMSampleBuffer) 方法

定義

開發人員可以覆寫在播放音訊緩衝區之後不久呼叫的這個方法。

[Foundation.Export("session:didOutputAudioSampleBuffer:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidOutputAudioSampleBuffer (ARKit.ARSession session, CoreMedia.CMSampleBuffer audioSampleBuffer);
abstract member DidOutputAudioSampleBuffer : ARKit.ARSession * CoreMedia.CMSampleBuffer -> unit
override this.DidOutputAudioSampleBuffer : ARKit.ARSession * CoreMedia.CMSampleBuffer -> unit

參數

session
ARSession

提供事件資訊的會話。

audioSampleBuffer
CMSampleBuffer

播放的音訊緩衝區。

屬性

適用於