mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Added NoAudioSound class constructor docs
This commit is contained in:
parent
5c3ad36ec3
commit
1835217d7e
1 changed files with 17 additions and 0 deletions
|
@ -2,8 +2,25 @@ var Class = require('../../utils/Class');
|
|||
var EventEmitter = require('eventemitter3');
|
||||
var Extend = require('../../utils/object/Extend');
|
||||
var BaseSound = require('../BaseSound');
|
||||
/*!
|
||||
* @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
|
||||
*/
|
||||
var NoAudioSound = new Class({
|
||||
Extends: EventEmitter,
|
||||
/**
|
||||
* No audio implementation of the sound. It is used if audio has been
|
||||
* disabled in the game config or the device doesn't support any audio.
|
||||
*
|
||||
* It represents a graceful degradation of sound logic that provides
|
||||
* minimal functionality and prevents Phaser projects that use audio from
|
||||
* breaking on devices that don't support any audio playback technologies.
|
||||
*
|
||||
* @class Phaser.Sound.NoAudioSound
|
||||
* @constructor
|
||||
* @param {Phaser.Sound.NoAudioSoundManager} manager - Reference to the current sound manager instance.
|
||||
* @param {string} key - Asset key for the sound.
|
||||
* @param {ISoundConfig} [config={}] - An optional config object containing default sound settings.
|
||||
*/
|
||||
initialize: function NoAudioSound(manager, key, config) {
|
||||
EventEmitter.call(this);
|
||||
this.manager = manager;
|
||||
|
|
Loading…
Reference in a new issue