Inherits from SPSound : NSObject
Declared in SPAVSound.h

Overview

The SPAVSound class is a concrete implementation of SPSound that uses AVAudioPlayer internally.

Don’t create instances of this class manually. Use [SPSound initWithContentsOfFile:] instead.

Tasks

Initialization

methods

Instance Methods

createPlayer

Creates an AVAudioPlayer object from the sound.

- (AVAudioPlayer *)createPlayer

Discussion

Creates an AVAudioPlayer object from the sound.

Declared In

SPAVSound.h

initWithContentsOfFile:duration:

Initializes a sound with the contents of a file and the known duration.

- (instancetype)initWithContentsOfFile:(NSString *)path duration:(double)duration

Discussion

Initializes a sound with the contents of a file and the known duration.

Declared In

SPAVSound.h