◆ QSoundEffect() [1/2]
◆ QSoundEffect() [2/2]
| QSoundEffect |
( |
long |
handle | ) |
|
◆ create() [1/2]
在文件 QSoundEffect.x 第 9 行定义.
9 {
10 nativehandle = QtXnl.createQObject(QType.qtSoundEffect,
this, 0l);
11 if (nativehandle == 0){
12 return false;
13 }
14 return true;
15 }
◆ create() [2/2]
| bool create |
( |
@NotNilptr QObject |
parent | ) |
|
在文件 QSoundEffect.x 第 16 行定义.
16 {
17 nativehandle = QtXnl.createQObject(QType.qtSoundEffect,
this, parent.nativehandle);
18 if (nativehandle == 0){
19 return false;
20 }
21 return true;
22 }
◆ play()
在文件 QSoundEffect.x 第 26 行定义.
26 {
27 QtXnl.widget_slot(nativehandle, Constant.QSOUNDEFFECT_PLAY);
28 }
◆ setLocalSource()
| void setLocalSource |
( |
String |
file | ) |
|
在文件 QSoundEffect.x 第 23 行定义.
23 {
24 QtXnl.widget_slot_string(nativehandle, Constant.SOUNDEFSETURI, file);
25 }
◆ setLoopCount()
| void setLoopCount |
( |
int |
loop | ) |
|
在文件 QSoundEffect.x 第 35 行定义.
35 {
36 QtXnl.widget_set_vint_value(nativehandle, Constant.QSOUNDEFFECT_SETLOOPCOUNT, loop);
37 }
◆ setVolume()
| void setVolume |
( |
int |
volume | ) |
|
在文件 QSoundEffect.x 第 32 行定义.
32 {
33 QtXnl.widget_set_vint_value(nativehandle, Constant.QSOUNDEFFECT_SETVOLUME, volume);
34 }
◆ stop()
在文件 QSoundEffect.x 第 29 行定义.
29 {
30 QtXnl.widget_slot(nativehandle, Constant.QSOUNDEFFECT_STOP);
31 }