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 targetURL

    Declaration

    Objective-C

    + (BOOL)exportFromURL:(nonnull NSURL *)sourceURL
                    toURL:(nonnull NSURL *)targetURL
                    error:(NSError *_Nullable *_Nullable)error;

    Parameters

    sourceURL

    The URL to export

    targetURL

    The destination URL

    error

    An 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 targetURL

    Declaration

    Objective-C

    + (BOOL)exportFromDecoder:(nonnull id<SFBPCMDecoding>)decoder
                        toURL:(nonnull NSURL *)targetURL
                        error:(NSError *_Nullable *_Nullable)error;

    Parameters

    decoder

    The decoder to export

    targetURL

    The destination URL

    error

    An optional pointer to an \c NSError object to receive error information

    Return Value

    \c YES on success, \c NO otherwise