Bewerken

Delen via


AudioFileStream.GetProperty Method

Definition

Overloads

GetProperty(AudioFileStreamProperty, Int32, IntPtr)

Low-level routine used to fetch arbitrary property values from the underlying AudioFileStream object.

GetProperty(AudioFileStreamProperty, Int32)

Low-level routine used to fetch arbitrary property values from the underlying AudioFileStream object.

GetProperty(AudioFileStreamProperty, Int32, IntPtr)

Low-level routine used to fetch arbitrary property values from the underlying AudioFileStream object.

public bool GetProperty (AudioToolbox.AudioFileStreamProperty property, ref int dataSize, IntPtr outPropertyData);
member this.GetProperty : AudioToolbox.AudioFileStreamProperty *  * nativeint -> bool

Parameters

property
AudioFileStreamProperty

Property ID to fetch.

dataSize
Int32

The expected size of the property (must match the underlying assumption for the size).

outPropertyData
IntPtr

nativeint

Must point to a buffer that can hold dataSize bytes.

Returns

True on success.

Remarks

This updates the LastError property.

Applies to

GetProperty(AudioFileStreamProperty, Int32)

Low-level routine used to fetch arbitrary property values from the underlying AudioFileStream object.

public IntPtr GetProperty (AudioToolbox.AudioFileStreamProperty property, out int size);
member this.GetProperty : AudioToolbox.AudioFileStreamProperty *  -> nativeint

Parameters

property
AudioFileStreamProperty

Property ID to fetch.

size
Int32

The size in bytes of the property.

Returns

IntPtr

nativeint

If the return value from this method is different that IntPtr.Zero, the value pointed to contains the value of the property.

Remarks

This method will query the underlying AudioFileStream object for the size of the specified property and allocate the memory needed for it using Marshal.AllocHGlobal method.

You are responsible for releasing the memory allocated by this method by calling Marshal.FreeHGlobal.

This updates the LastError property.

Applies to