Class AudioBuffer
public class AudioBuffer
- Inheritance
-
AudioBuffer
- Inherited Members
Methods
Clip(BufferUnownedHandle, SegmentHandle, int, int)
Calls native function gst_audio_buffer_clip.
public static extern BufferOwnedHandle Clip(BufferUnownedHandle buffer, SegmentHandle segment, int rate, int bpf)
Parameters
buffer
BufferUnownedHandleTransfer ownership: Full Nullable: False
segment
SegmentHandleTransfer ownership: None Nullable: False
rate
intTransfer ownership: None Nullable: False
bpf
intTransfer ownership: None Nullable: False
Returns
- BufferOwnedHandle
Transfer ownership: Full Nullable: True
Map(AudioBufferOwnedHandle, AudioInfoHandle, BufferHandle, MapFlags)
Calls native function gst_audio_buffer_map. Version: 1.16
[Version("1.16")]
public static extern bool Map(AudioBufferOwnedHandle buffer, AudioInfoHandle info, BufferHandle gstbuffer, MapFlags flags)
Parameters
buffer
AudioBufferOwnedHandleTransfer ownership: None Nullable: False
info
AudioInfoHandleTransfer ownership: None Nullable: False
gstbuffer
BufferHandleTransfer ownership: None Nullable: False
flags
MapFlagsTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
ReorderChannels(BufferHandle, AudioFormat, int, AudioChannelPosition[], AudioChannelPosition[])
Calls native function gst_audio_buffer_reorder_channels.
public static extern bool ReorderChannels(BufferHandle buffer, AudioFormat format, int channels, AudioChannelPosition[] from, AudioChannelPosition[] to)
Parameters
buffer
BufferHandleTransfer ownership: None Nullable: False
format
AudioFormatTransfer ownership: None Nullable: False
channels
intTransfer ownership: None Nullable: False
from
AudioChannelPosition[]Transfer ownership: None Nullable: False
to
AudioChannelPosition[]Transfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Truncate(BufferUnownedHandle, int, nuint, nuint)
Calls native function gst_audio_buffer_truncate. Version: 1.16
[Version("1.16")]
public static extern BufferOwnedHandle Truncate(BufferUnownedHandle buffer, int bpf, nuint trim, nuint samples)
Parameters
buffer
BufferUnownedHandleTransfer ownership: Full Nullable: False
bpf
intTransfer ownership: None Nullable: False
trim
nuintTransfer ownership: None Nullable: False
samples
nuintTransfer ownership: None Nullable: False
Returns
- BufferOwnedHandle
Transfer ownership: Full Nullable: False
Unmap(AudioBufferHandle)
Calls native method gst_audio_buffer_unmap. Version: 1.16
[Version("1.16")]
public static extern void Unmap(AudioBufferHandle buffer)
Parameters
buffer
AudioBufferHandleTransfer ownership: None Nullable: False