MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / Sound

Class Sound

src/scripting/api/Player/Sound.ts:5–41  ·  view source on GitHub ↗

* Class for sound support

Source from the content-addressed store, hash-verified

3 * Class for sound support
4 */
5 class Sound {
6 private _source:string;
7 private _isPlaying:boolean = false;
8 public onload:Function;
9
10 constructor(type:string, onload:Function) {
11 this.onload = onload;
12 this._source = type;
13 }
14
15 public createFromURL(url:string):void {
16 this._source = url;
17 }
18
19 public play():void {
20
21 }
22
23 public remove():void {
24
25 }
26
27 public stop():void {
28
29 }
30
31 public loadPercent():number {
32 return 0;
33 }
34
35 public serialize():Object {
36 return {
37 'class':'Sound',
38 'url':this._source
39 };
40 }
41 }
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected