{
  "code": "export var VoiceType;\r\n(function (VoiceType) {\r\n    VoiceType[VoiceType[\"crashrole\"] = 0] = \"crashrole\";\r\n    VoiceType[VoiceType[\"crashwall\"] = 1] = \"crashwall\";\r\n    VoiceType[VoiceType[\"win\"] = 2] = \"win\";\r\n    VoiceType[VoiceType[\"lose\"] = 3] = \"lose\";\r\n    VoiceType[VoiceType[\"fly\"] = 4] = \"fly\";\r\n    VoiceType[VoiceType[\"speedup\"] = 5] = \"speedup\";\r\n    VoiceType[VoiceType[\"coin\"] = 6] = \"coin\";\r\n})(VoiceType || (VoiceType = {}));\r\nexport var BGMType;\r\n(function (BGMType) {\r\n    BGMType[BGMType[\"bgm\"] = 0] = \"bgm\";\r\n})(BGMType || (BGMType = {}));\r\n;\r\nexport class AudioManager {\r\n    static voiceres(_type) {\r\n        return \"subpackage2/res/music/\" + VoiceType[_type] + \".mp3\";\r\n    }\r\n    static bgmres(_type) {\r\n        return \"subpackage2/res/music/\" + BGMType[_type] + \".mp3\";\r\n    }\r\n    static ClearAudio() {\r\n        Laya.SoundManager.stopAllSound();\r\n    }\r\n    static StopMusic() {\r\n        Laya.SoundManager.stopMusic();\r\n    }\r\n    static PlayBGM(_type) {\r\n        if (!this.play)\r\n            return;\r\n        Laya.SoundManager.musicVolume = 0.3;\r\n        Laya.SoundManager.playMusic(this.bgmres(_type), 0);\r\n    }\r\n    static PlayVoice(_type, _loop = false) {\r\n        if (!this.play)\r\n            return;\r\n        var loop = _loop ? 0 : 1;\r\n        Laya.SoundManager.soundVolume = 1;\r\n        if (_type == VoiceType.coin) {\r\n            Laya.SoundManager.soundVolume = 0.3;\r\n        }\r\n        Laya.SoundManager.playSound(this.voiceres(_type), loop);\r\n    }\r\n}\r\nAudioManager.play = true;\r\n//# sourceMappingURL=AudioManager.js.map",
  "references": [],
  "map": "{\"version\":3,\"file\":\"AudioManager.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/Manager/AudioManager.ts\"],\"names\":[],\"mappings\":\"AAEA,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