Delegate MediaPlayer.LibVLCAudioSetupCb
- Namespace
- LibVLCSharp.Shared
- Assembly
- LibVLCSharp.dll
Callback prototype to setup the audio playback.
public delegate int MediaPlayer.LibVLCAudioSetupCb(ref nint opaque, ref nint format, ref uint rate, ref uint channels)
Parameters
opaquenintpointer to the data pointer passed to
libvlc_audio_set_callbacks() [IN/OUT]
formatnint4 bytes sample format [IN/OUT]
rateuintsample rate [IN/OUT]
channelsuintchannels count [IN/OUT]
Returns
- int
0 on success, anything else to skip audio playback
Remarks
This is called when the media player needs to create a new audio output.
Constructors
LibVLCAudioSetupCb(object, nint)
public LibVLCAudioSetupCb(object @object, nint method)
Parameters
Methods
BeginInvoke(ref nint, ref nint, ref uint, ref uint, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(ref nint opaque, ref nint format, ref uint rate, ref uint channels, AsyncCallback callback, object @object)
Parameters
Returns
EndInvoke(ref nint, ref nint, ref uint, ref uint, IAsyncResult)
public virtual int EndInvoke(ref nint opaque, ref nint format, ref uint rate, ref uint channels, IAsyncResult result)
Parameters
opaquenintformatnintrateuintchannelsuintresultIAsyncResult
Returns
Invoke(ref nint, ref nint, ref uint, ref uint)
public virtual int Invoke(ref nint opaque, ref nint format, ref uint rate, ref uint channels)