phaser/src/sound/noaudio/NoAudioSound.js

17 lines
487 B
JavaScript
Raw Normal View History

var Class = require('../../utils/Class');
var EventEmitter = require('eventemitter3');
var NoAudioSound = new Class({
Extends: EventEmitter,
initialize: function NoAudioSound(manager, key, config) {
EventEmitter.call(this);
this.manager = manager;
this.key = key;
this.isPlaying = false;
this.isPaused = false;
2018-01-20 20:00:31 +00:00
this.totalRate = 1;
2018-01-20 20:00:50 +00:00
this.duration = 0;
this.totalDuration = 0;
}
});
module.exports = NoAudioSound;