SFBAudioExporter
@interface SFBAudioExporter : NSObject
A class that exports audio using \c AVAudioFile
-
Exports audio to the specified URL
Note
The file type to create is inferred from the file extension of \c targetURLDeclaration
Objective-C
+ (BOOL)exportFromURL:(nonnull NSURL *)sourceURL toURL:(nonnull NSURL *)targetURL error:(NSError *_Nullable *_Nullable)error;Parameters
sourceURLThe URL to export
targetURLThe destination URL
errorAn optional pointer to an \c NSError object to receive error information
Return Value
\c YES on success, \c NO otherwise
-
Exports audio to the specified URL
Note
The file type to create is inferred from the file extension of \c targetURLDeclaration
Objective-C
+ (BOOL)exportFromDecoder:(nonnull id<SFBPCMDecoding>)decoder toURL:(nonnull NSURL *)targetURL error:(NSError *_Nullable *_Nullable)error;Parameters
decoderThe decoder to export
targetURLThe destination URL
errorAn optional pointer to an \c NSError object to receive error information
Return Value
\c YES on success, \c NO otherwise
View on GitHub
SFBAudioExporter Class Reference