OALTools Class Reference
Inherits from | NSObject |
Declared in | OALTools.h |
Tasks
-
+ urlForPath:
Returns the URL corresponding to the specified path. If the path is not absolute (starts with a “/”), this method will look for the file in the application’s main bundle.
-
+ notifyExtAudioError:function:description:
Notify an error if the specified ExtAudio error code indicates an error. This will log the error and also potentially post an audio error notification (OALAudioErrorNotification) if it is suspected that this error is a result of the audio session getting corrupted.
-
+ notifyAudioSessionError:function:description:
Notify an error if the specified AudioSession error code indicates an error. This will log the error and also potentially post an audio error notification (OALAudioErrorNotification) if it is suspected that this error is a result of the audio session getting corrupted.
Class Methods
notifyAudioSessionError:function:description:
Notify an error if the specified AudioSession error code indicates an error. This will log the error and also potentially post an audio error notification (OALAudioErrorNotification) if it is suspected that this error is a result of the audio session getting corrupted.
+ (void)notifyAudioSessionError:(OSStatus)errorCode function:(const char *)function description:(NSString *)description, ...
Parameters
- function:
The function name where the error occurred.
- description:
A printf-style description of what happened.
- errorCode:
The error code returned from an OS call.
Declared In
OALTools.h
notifyExtAudioError:function:description:
Notify an error if the specified ExtAudio error code indicates an error. This will log the error and also potentially post an audio error notification (OALAudioErrorNotification) if it is suspected that this error is a result of the audio session getting corrupted.
+ (void)notifyExtAudioError:(OSStatus)errorCode function:(const char *)function description:(NSString *)description, ...
Parameters
- function:
The function name where the error occurred.
- description:
A printf-style description of what happened.
- errorCode:
The error code returned from an OS call.
Declared In
OALTools.h
urlForPath:
Returns the URL corresponding to the specified path. If the path is not absolute (starts with a “/”), this method will look for the file in the application’s main bundle.
+ (NSURL *)urlForPath:(NSString *)path
Parameters
- path
The path to convert to a URL.
Return Value
The corresponding URL or nil if a URL could not be formed.
Declared In
OALTools.h