AsoundingReference

ASNSound

Inherits fromNSObject
Declared inASNSound.h
Part ofAsounding Audio Engine

Overview

A sound playable in the background by a sound source.

Tasks

Creating a Sound Object

+ soundWithContentOfURL:
Create a new sound object from the given URL.

Initializing a Sound Object

- initWithContentOfURL:
Initialize sound object from the given URL.

Class Methods

soundWithContentOfURL:

Create a new sound object from the given URL.

+ (id)soundWithContentOfURL:(NSURL *)url

Parameters

url
URL to read the sound from.

Discussion

The selected audio file must be in a uncompressed format understood by CoreAudio. This includes AIFF, WAV, and CAF files with uncompressed data.

Instance Methods

initWithContentOfURL:

Initialize sound object from the given URL.

- (id)initWithContentOfURL:(NSURL *)url

Parameters

url
URL to read the sound from.

Discussion

The selected audio file must be in a uncompressed format understood by CoreAudio. This includes AIFF, WAV, and CAF files with uncompressed data.