/**
 * 音效
 */

//一定按照顺序来
var E_Audio = {
	AllPop: 0,//全部弹出
	BtnCommom: 1,//按钮
	CatComplete: 2,
	CatHint: 3,
	CatRight1: 4,
	CatRight2: 5,
	CatError1: 6,
	CatError2: 7,
	Right: 8,
	Error: 9,
}

var speaker = cc.Class({
	extends: cc.Component,

	properties: {
		eff_audio: {
			default: [],
			type: cc.AudioClip,
			displayName: "音效列表"
		},
	},

	ctor: function () {
		speaker.inst = this;
		LWD_3.speaker = speaker;
	},


	//播放音效
	playEffect: function (num, cb) {
		LWD_3.snd_mgr.playEffect(this.eff_audio[num], cb);
	},

});
