Inherits from NSObject
Conforms to AVAudioPlayerDelegate
Declared in TKSoundAlertController.h
TKSoundAlertController.m

Overview

TKSoundAlertController plays simple user interface sounds.

Properties

on

Flag to enable the play of the sound. If off, it will not play the sound. Default is off.

@property (assign, nonatomic, getter=isOn) BOOL on

Declared In

TKSoundAlertController.h

Class Methods

playAIF:

Plays a sound file immediately.

+ (void)playAIF:(NSString *)soundName

Parameters

soundName

Plays a sound file with name ‘insert-sound-name’.aif

Declared In

TKSoundAlertController.h

playAIFF:

Plays a sound file immediately.

+ (void)playAIFF:(NSString *)soundName

Parameters

soundName

Plays a sound file with name ‘insert-sound-name’.aiff

Declared In

TKSoundAlertController.h

playCAF:

Plays a sound file immediately.

+ (void)playCAF:(NSString *)soundName

Parameters

soundName

Plays a sound file with name ‘insert-sound-name’.caf

Declared In

TKSoundAlertController.h

playWAV:

Plays a sound file immediately.

+ (void)playWAV:(NSString *)soundName

Parameters

soundName

Plays a sound file with name ‘insert-sound-name’.wav

Declared In

TKSoundAlertController.h

sharedInstance

Returns the singleton sound alert controller.

+ (TKSoundAlertController *)sharedInstance

Return Value

The shared instance sound alert controller object.

Declared In

TKSoundAlertController.h

Instance Methods

playSoundName:type:

Play a sound.

- (void)playSoundName:(NSString *)soundName type:(NSString *)type

Parameters

soundName

The name of the sound file.

type

The file extension.

Declared In

TKSoundAlertController.h