![]() |
API 0.9.5
|
#import <CPSound.h>
Inheritance diagram for CPSound:Instance Methods | |
| (id) | - delegate |
| (double) | - duration |
| (id) | - init |
| (id) | - initWithContentsOfFile:byReference: |
| (id) | - initWithContentsOfURL:byReference: |
| (id) | - initWithData: |
| (BOOL) | - isPlaying |
| (BOOL) | - loops |
| (CPString) | - name |
| (BOOL) | - pause |
| (BOOL) | - play |
| (BOOL) | - resume |
| (void) | - setDelegate: |
| (void) | - setLoops: |
| (void) | - setName: |
| (void) | - setVolume: |
| (BOOL) | - stop |
| (double) | - volume |
CPSound provides a way to load and play sounds. In the browser it relies on the HTML5 audio tag being available.
CPSound delegate:
| - (double) duration |
| - (id) initWithContentsOfFile: | (CPString) | aFile | |
| byReference: | (BOOL) | byRef | |
| - (id) initWithContentsOfURL: | (CPURL) | aURL | |
| byReference: | (BOOL) | byRef | |
| - (id) initWithData: | (CPData) | someData |
| - (BOOL) isPlaying |
| - (BOOL) loops |
| - (BOOL) pause |
| - (BOOL) play |
| - (BOOL) resume |
| - (void) setDelegate: | (id) | aValue |
| - (void) setLoops: | (BOOL) | shouldLoop |
| - (void) setName: | (CPString) | aValue |
| - (void) setVolume: | (double) | aVolume |
| - (BOOL) stop |
| - (double) volume |