AVAudioPlayer.FromData 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
FromData(NSData, NSError) |
Creates an audio player that plays music from an NSData source. |
FromData(NSData) |
Creates an audio player that plays music from an NSData source. |
FromData(NSData, NSError)
Creates an audio player that plays music from an NSData source.
public static AVFoundation.AVAudioPlayer FromData (Foundation.NSData data, out Foundation.NSError error);
static member FromData : Foundation.NSData * -> AVFoundation.AVAudioPlayer
Parameters
- data
- NSData
Audio data, in a format supported by the native operating system.
- error
- NSError
Used to return error codes
Returns
null on error, or an instance of the AVAudioPlayer on success.
Applies to
FromData(NSData)
Creates an audio player that plays music from an NSData source.
public static AVFoundation.AVAudioPlayer FromData (Foundation.NSData data);
static member FromData : Foundation.NSData -> AVFoundation.AVAudioPlayer
Parameters
- data
- NSData
Audio data, in a format supported by the native operating system.
Returns
null on error, or an instance of the AVAudioPlayer on success.