Files
JiboOs/docs/sound/SoundContext.js
2026-03-16 13:53:01 +02:00

52 lines
1.0 KiB
JavaScript

/**
* @description Main class to handle webkit audio.
*
* @class SoundContext
* @memberof jibo.sound
*/
/**
* The instance of the AudioContext for WebAudio API.
* @private
* @property {AudioContext} _ctx
*/
/**
* The WebAudio API AudioContext object.
* @property {AudioContext} context
* @private
* @name SoundContext#context
* @type {AudioContext}
*/
/**
* Sets the muted state.
* @type {Boolean}
* @name SoundContext#muted
* @default false
*/
/**
* Sets the volume from 0 to 1.
* @type {Number}
* @name SoundContext#volume
* @default 1
*/
/**
* Pauses all sounds.
* @type {Boolean}
* @name SoundContext#paused
* @default false
*/
/**
* Returns the entry node in the master node chains.
* @private
*/
/**
* Toggles the muted state.
* @method SoundContext#toggleMute
* @return {Boolean} The current muted state.
*/