sfml.js 0.0.1-preview.26 → 0.0.1-preview.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,8 @@ export class SoundSource {
5
5
  pause(): void;
6
6
  stop(): void;
7
7
 
8
+ getStatus(): SoundSource.Status;
9
+
8
10
  setPitch(pitch: number): void;
9
11
  getPitch(): number;
10
12
 
@@ -21,3 +23,11 @@ export class SoundSource {
21
23
  getRelativeToListener(): boolean;
22
24
  isRelativeToListener(): boolean;
23
25
  }
26
+
27
+ export namespace SoundSource {
28
+ enum Status {
29
+ Stopped = 0,
30
+ Paused = 1,
31
+ Playing = 2,
32
+ }
33
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfml.js",
3
- "version": "0.0.1-preview.26",
3
+ "version": "0.0.1-preview.27",
4
4
  "description": "SFML's Node.js binding.",
5
5
  "main": "lib/sfml.js",
6
6
  "scripts": {
package/src/sound/sound.h CHANGED
@@ -39,4 +39,4 @@ class Sound : public SoundSource {
39
39
  } // namespace sound
40
40
  } // namespace node_sfml
41
41
 
42
- #endif // SRC_SOUND_H_
42
+ #endif // SRC_SOUND_SOUND_H_