AudioFile.GetProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetProperty(AudioFileProperty, Int32) |
Returns the value of the specified audio property, and stores the number of bytes allocated to store it in |
| GetProperty(AudioFileProperty, Int32, IntPtr) |
Returns the value of the specified audio property, stores it in |
GetProperty(AudioFileProperty, Int32)
Returns the value of the specified audio property, and stores the number of bytes allocated to store it in size.
public IntPtr GetProperty(AudioToolbox.AudioFileProperty property, out int size);
member this.GetProperty : AudioToolbox.AudioFileProperty * int -> nativeint
Parameters
- property
- AudioFileProperty
The property to get.
- size
- Int32
Upon return, the size of the property.
Returns
nativeint
A pointer to the value of the specified audio property, or Size in case of failure.
Remarks
The caller is responsible for freeing the returned pointer, using FreeHGlobal(IntPtr).
Applies to
GetProperty(AudioFileProperty, Int32, IntPtr)
Returns the value of the specified audio property, stores it in outdata, and stores the number of bytes allocated to store it in dataSize.
public bool GetProperty(AudioToolbox.AudioFileProperty property, ref int dataSize, IntPtr outdata);
member this.GetProperty : AudioToolbox.AudioFileProperty * int * nativeint -> bool
Parameters
- property
- AudioFileProperty
The property to get.
- dataSize
- Int32
On input the number of size of outdata, upon return the number of packets bytes written.
- outdata
-
IntPtr
nativeint
A pointer to the memory where the property value will be stored.
Returns
Whether the operation succeeded or not.