기술 자료

Unity Engine

Unity Engine

AudioSampleProvider.SampleFramesEventNativeFunction

Type that represents the native function pointer for handling sample frame events.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public delegate void AudioSampleProvider.SampleFramesEventNativeFunction(nint userData, uint providerId, uint sampleFrameCount)

Remarks

Importing such a function from a native plug-in would be done this way:

Examples

[DllImport(pluginName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]private static extern void SampleFramesAvailable(IntPtr userData, uint id, uint sampleFrameCount);