-
Notifications
You must be signed in to change notification settings - Fork 189
/
Copy pathChessVoice.h
35 lines (28 loc) · 1.05 KB
/
ChessVoice.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
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2019-2024 XMuli & Contributors
// SPDX-GitHub: https://github.com/XMuli/ChineseChess
// SPDX-Author: XMuli <[email protected]>
#ifndef CHESSVOICE_H
#define CHESSVOICE_H
#include <QObject>
#include <QSound>
class ChessVoice : public QObject
{
Q_OBJECT
public:
explicit ChessVoice(QObject *parent = nullptr);
~ChessVoice();
QSound *m_win =new QSound(":/sound/WinSound.wav",this);
QSound *m_select =new QSound(":/sound/selectChess.wav",this);
QSound *m_move =new QSound(":/sound/moveChess.wav",this);
QSound *m_eat =new QSound(":/sound/eatChess.wav",this);
QSound *m_back =new QSound(":/sound/backChess.wav",this);
QSound *m_general =new QSound(":/sound/generalSound.wav",this);
void voiceWin(); // 胜利音效
void voiceSelect(); // 选棋音效
void voiceMove(); // 移动音效
void voiceEat(); // 吃子音效
void voiceBack(); // 悔棋音效
void voiceGeneral(); // 将军音效
};
#endif // CHESSVOICE_H