Documentation Archive Developer
Search

AudioToolbox Changes for Objective-C

AudioToolbox

AudioServices.h

Declaration
From
void AudioServicesPlayAlertSoundWithCompletion (
    SystemSoundID inSystemSoundID,
    void (^ _Nullable)(void) inCompletionBlock
);
To
void AudioServicesPlayAlertSoundWithCompletion (
    SystemSoundID inSystemSoundID,
    void (^inCompletionBlock)(void)
);

Declaration
From
void AudioServicesPlaySystemSoundWithCompletion (
    SystemSoundID inSystemSoundID,
    void (^ _Nullable)(void) inCompletionBlock
);
To
void AudioServicesPlaySystemSoundWithCompletion (
    SystemSoundID inSystemSoundID,
    void (^inCompletionBlock)(void)
);