ASNSound
Inherits from | NSObject |
---|---|
Declared in | ASNSound.h |
Part of | Asounding 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
- url
- URL to read the sound from.
Parameters
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
- url
- URL to read the sound from.
Parameters
Discussion
The selected audio file must be in a uncompressed format understood by CoreAudio. This includes AIFF, WAV, and CAF files with uncompressed data.