UNPKG

@flashport/flashport

Version:

FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library

47 lines (46 loc) 1.58 kB
/** * properties.SoundShortcuts * List of default special properties for Sounds * The function names are strange/inverted because it makes for easier debugging (alphabetic order). They're only for internal use (on this class) anyways. * * @author Zeh Fernando, Nate Chatellier, Arthur Debert * @version 1.0.0 */ export declare class SoundShortcuts { /** * There's no constructor. */ constructor(); /** * Registers all the special properties to the Tweener class, so the Tweener knows what to do with them. */ static init: () => void; /** * Returns the current sound volume * * @param p_obj Object SoundChannel object * @return Number The current volume */ static _sound_volume_get: (p_obj: any, p_parameters: any[], p_extra?: any) => number; /** * Sets the sound volume * * @param p_obj Object SoundChannel object * @param p_value Number New volume */ static _sound_volume_set: (p_obj: any, p_value: number, p_parameters: any[], p_extra?: any) => void; /** * Returns the current sound pan * * @param p_obj Object SoundChannel object * @return Number The current pan */ static _sound_pan_get: (p_obj: any, p_parameters: any[], p_extra?: any) => number; /** * Sets the sound volume * * @param p_obj Object SoundChannel object * @param p_value Number New pan */ static _sound_pan_set: (p_obj: any, p_value: number, p_parameters: any[], p_extra?: any) => void; }