-
Notifications
You must be signed in to change notification settings - Fork 2
/
ZSound.h
71 lines (65 loc) · 1.46 KB
/
ZSound.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once
#include <map>
#include <iostream>
using namespace std;
enum SounID
{
other_btn,//按键
ESoundEffectInRoom, //进出房间 baselayer soundWithInAndOutRoom用到
ESoundEffectOutmenu, //弹出菜单
kEffectDeshion0_mn,
kEffectDeshion0_n1,
kEffectDeshion0_n2,
kEffectDeshion0_n3,
kEffectDeshion0_n4,
kEffectDeshion0_n5,
kEffectDeshion0_n6,
kEffectDeshion0_n7,
kEffectDeshion0_n8,
kEffectDeshion0_n9,
kEffectDeshion0_nn,
kEffectDeshion0_nw,
kEffectDeshion0_nb,
kEffectDeshion0_nx,
kEffectDeshion0_qz,
kEffectDeshion0_xz,
kEffectDeshion0_wait,
kEffectDeshion0_follow,
kEffectDeshion0_add,
kEffectDeshion0_discard,
kEffectDeshion0_allin,
others_win,//胜利
others_send,//发牌
others_5s,//倒计时5s
others_shock,//比牌的电流音
others_finish_task,//完成任务
others_bet,//下注
others_compair_win,//比赢了
others_compair_fail,//比输了
others_clap,//百 人结算win
ESoundEffectTigerPlay,
ESoundEffectTigerPocker,
ESoundEffectTigerWin,
ESoundEffectZhaSiNi, // 炸死你
ESoundEffectDianSiNi, // 電死你
ESoundEffectZaSiNi, // 砸死你
ESoundEffectBiLeNi, // 斃了你
ESoundEffectZanYiXia, // 贊一下
ESoundEffectNiWeiWu, // 你威武
ESoundEffectPaoXiuQiu, // 抛绣球
};
class CZSound
{
public:
CZSound(void);
virtual ~CZSound(void);
public:
static CZSound*Instance();
void initGameSound();
void initButtonSound();
unsigned int playSound(int soundID,bool bloop = false);
void stopSound(int soundID);
void stopAllSound();
private:
static CZSound *m_pInstance;
};