xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
multimedia
QAudioOutput.x
浏览该文件的文档.
1
//xlang Source, Name:qt5/multimedia/QAudioOutput.x
2
//Date: Fri Mar 21:12:34 2021
3
4
package
Qt{
5
@SuppressWarnings public class QAudioOutput : QObject{
6
public QAudioOutput(){
7
}
8
9
public QAudioOutput(long handle){
10
super(handle);
11
}
12
13
public
bool
create
(@NotNilptr QObject parent, QAudioFormat f) {
14
nativehandle = QtXnl.createQPObject(QType.qtAudioOutput,
this
, parent == nilptr ? 0l : parent.nativehandle, f == nilptr ? 0l : f.nativehandle, 0l, 0l, 0l);
15
if
(nativehandle == 0){
16
return
false
;
17
}
18
return
true
;
19
}
20
21
public
QAudioFormat
format
() {
22
return
new
QAudioFormat(QtXnl.long_get(nativehandle, Constant.QAUDIOOUTPUT_FORMAT));
23
}
24
25
public
long
write
(
Object
data,
int
ofst,
int
len){
26
return
QtXnl.widget_set_int2_object_value(nativehandle, Constant.QAUDIOOUTPUT_WRITE, ofst, len, data);
27
}
28
29
public
void
start
(){
30
QtXnl.widget_slot(nativehandle, Constant.QAUDIOOUTPUT_START);
31
}
32
33
public
void
stop
(){
34
QtXnl.widget_slot(nativehandle, Constant.QAUDIOOUTPUT_STOP);
35
}
36
37
public
void
reset
(){
38
QtXnl.widget_slot(nativehandle, Constant.QAUDIOOUTPUT_RESET);
39
}
40
41
public
void
suspend
(){
42
QtXnl.widget_slot(nativehandle, Constant.QAUDIOOUTPUT_SUSPEND);
43
}
44
45
public
void
resume
(){
46
QtXnl.widget_slot(nativehandle, Constant.QAUDIOOUTPUT_RESUME);
47
}
48
49
public
void
setBufferSize
(
int
bytes){
50
QtXnl.widget_set_vint_value(nativehandle, Constant.QAUDIOOUTPUT_SETBUFFERSIZE, bytes);
51
}
52
53
public
int
bufferSize
() {
54
return
QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOOUTPUT_BUFFERSIZE);
55
}
56
57
public
int
bytesFree
() {
58
return
QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOOUTPUT_BYTESFREE);
59
}
60
61
public
int
periodSize
() {
62
return
QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOOUTPUT_PERIODSIZE);
63
}
64
65
public
void
setNotifyInterval
(
int
milliSeconds){
66
QtXnl.widget_set_vint_value(nativehandle, Constant.QAUDIOOUTPUT_SETNOTIFYINTERVAL, milliSeconds);
67
}
68
69
public
int
notifyInterval
(){
70
return
QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOOUTPUT_NOTIFYINTERVAL);
71
}
72
73
public
long
processedUSecs
() {
74
return
QtXnl.long_get(nativehandle, Constant.QAUDIOOUTPUT_PROCESSEDUSECS);
75
}
76
77
public
long
elapsedUSecs
() {
78
return
QtXnl.long_get(nativehandle, Constant.QAUDIOOUTPUT_ELAPSEDUSECS);
79
}
80
81
public
QAudio.Error
error
() {
82
return
(QAudio.Error)QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOOUTPUT_ERROR);
83
}
84
85
public
QAudio.State
state
() {
86
return
(QAudio.State)QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOOUTPUT_STATE);
87
}
88
89
public
void
setVolume
(
double
v){
90
QtXnl.widget_set_double_value(nativehandle, Constant.QAUDIOOUTPUT_SETVOLUME, v);
91
}
92
93
public
double
volume
() {
94
return
QtXnl.widget_get_double_value(nativehandle, Constant.QAUDIOOUTPUT_VOLUME);
95
}
96
97
//signal
98
onAudioOutputListener
_lis
;
99
public
void
setOnAudioOutputListener
(onAudioOutputListener l ){
100
_lis = l;
101
}
102
public
onAudioOutputListener
getOnAudioOutputListener
(){
103
return
_lis;
104
}
105
106
public
void
stateChanged
(QAudio.State s){
107
if
(_lis != nilptr){
108
_lis.stateChanged(
this
, s);
109
}
110
}
111
112
public
void
notify
(){
113
if
(_lis != nilptr){
114
_lis.notify(
this
);
115
}
116
}
117
};
118
};
Object
Definition
BuiltinObjects.x:14
Qt.QAudioOutput.state
QAudio.State state()
Definition
QAudioOutput.x:85
Qt.QAudioOutput.getOnAudioOutputListener
onAudioOutputListener getOnAudioOutputListener()
Definition
QAudioOutput.x:102
Qt.QAudioOutput.format
QAudioFormat format()
Definition
QAudioOutput.x:21
Qt.QAudioOutput.suspend
void suspend()
Definition
QAudioOutput.x:41
Qt.QAudioOutput.error
QAudio.Error error()
Definition
QAudioOutput.x:81
Qt.QAudioOutput.volume
double volume()
Definition
QAudioOutput.x:93
Qt.QAudioOutput.resume
void resume()
Definition
QAudioOutput.x:45
Qt.QAudioOutput.start
void start()
Definition
QAudioOutput.x:29
Qt.QAudioOutput.periodSize
int periodSize()
Definition
QAudioOutput.x:61
Qt.QAudioOutput.setVolume
void setVolume(double v)
Definition
QAudioOutput.x:89
Qt.QAudioOutput.create
bool create(@NotNilptr QObject parent, QAudioFormat f)
Definition
QAudioOutput.x:13
Qt.QAudioOutput.bufferSize
int bufferSize()
Definition
QAudioOutput.x:53
Qt.QAudioOutput.setOnAudioOutputListener
void setOnAudioOutputListener(onAudioOutputListener l )
Definition
QAudioOutput.x:99
Qt.QAudioOutput._lis
onAudioOutputListener _lis
Definition
QAudioOutput.x:98
Qt.QAudioOutput.notify
void notify()
Definition
QAudioOutput.x:112
Qt.QAudioOutput.stop
void stop()
Definition
QAudioOutput.x:33
Qt.QAudioOutput.bytesFree
int bytesFree()
Definition
QAudioOutput.x:57
Qt.QAudioOutput.setNotifyInterval
void setNotifyInterval(int milliSeconds)
Definition
QAudioOutput.x:65
Qt.QAudioOutput.elapsedUSecs
long elapsedUSecs()
Definition
QAudioOutput.x:77
Qt.QAudioOutput.processedUSecs
long processedUSecs()
Definition
QAudioOutput.x:73
Qt.QAudioOutput.write
long write(Object data, int ofst, int len)
Definition
QAudioOutput.x:25
Qt.QAudioOutput.reset
void reset()
Definition
QAudioOutput.x:37
Qt.QAudioOutput.notifyInterval
int notifyInterval()
Definition
QAudioOutput.x:69
Qt.QAudioOutput.stateChanged
void stateChanged(QAudio.State s)
Definition
QAudioOutput.x:106
Qt.QAudioOutput.setBufferSize
void setBufferSize(int bytes)
Definition
QAudioOutput.x:49
制作者
1.9.8