#import <AMChunk.h>

Public Member Functions | |
| (id) | - initWithParent: |
| Creates a new chunk object. | |
| (void) | - addSound: |
| Adds a sound to the chunk. | |
| (void) | - removeSoundAtIndex: |
| Removes the sound at the given index from the chunk. | |
| (void) | - setActive: |
| Sets the sound as active. | |
| (NSArray *) | - getSounds |
| Returns the internal array of sounds. | |
Protected Attributes | |
| UID | uid |
| id | parent |
| NSMutableArray * | instances |
| NSMutableDictionary * | controls |
| NSMutableArray * | sounds |
Properties | |
| AMTime * | dur |
| The duration of the chunk. | |
| AMPickType | pick |
| Determines how the sounds are picked. | |
| AMFadeInType | fadeInType |
| The fade in type for the chunk. | |
| AMTime * | fadeInDur |
| The fade in duration. | |
| AMFadeOutType | fadeOutType |
| The fade out type for the transition with the next chunk. | |
| AMTime * | fadeOutDur |
| The duration of the fade out transition. | |
| int | activeSound |
| The index of the current active sound. | |
| int | nextSound |
| The index of the nexy active sound. | |
| - (void) addSound: | (AMSound *) | _sound |
| - (NSArray *) getSounds |
Returns the internal array of sounds.
FOR INTERNAL USAGE ONLY.
| - (id) initWithParent: | (id) | _parent |
Creates a new chunk object.
| parent | The parent object of the chunk. |
| - (void) removeSoundAtIndex: | (int) | _idx |
Removes the sound at the given index from the chunk.
The function is ignored if the index is invalid.
| idx | The index of the sound object to remove. |
| - (void) setActive: | (AMSound *) | _sound |
Sets the sound as active.
Has no effects on currently playing instances of the chunk.
| sound | The sound to set as active. |
- (AMFadeInType) fadeInType [read, write, assign] |
The fade in type for the chunk.
If the previous chunk has set AM_FOT_CROSSFADE as it fade out type, the fade in properties for this chunk will be ignored.
1.5.9