g.enum = {
	E_Audio: {
		Star: 0,//大星星
		BtnCommom: 1,//按钮
		Flowers: 2,//撒花
		Right: 3,//正确
		Error: 4,//错误
		Question: 5,//题数
	}
}
/**
 * 音效
 */

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

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

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

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

	playEffect: function (num, cb) {
		g.snd_mgr.playMusic(this.eff_audio[num], 1, cb);
	},
});
