xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
multimedia
QAudioInput.x
浏览该文件的文档.
1
//xlang Source, Name:qt5/multimedia/QAudioInput.x
2
//Date: Sat Mar 00:51:44 2021
3
package
Qt{
4
@SuppressWarnings public class QAudioInput : QObject{
5
public QAudioInput(){
6
}
7
8
public QAudioInput(long handle){
9
super(handle);
10
}
11
12
public
bool
create
(@NotNilptr QObject parent, QAudioFormat f) {
13
nativehandle = QtXnl.createQPObject(QType.qtAudioInput,
this
, parent == nilptr ? 0l : parent.nativehandle, f == nilptr ? 0l : f.nativehandle, 0l, 0l, 0l);
14
if
(nativehandle == 0){
15
return
false
;
16
}
17
return
true
;
18
}
19
20
public
QAudioFormat
format
() {
21
return
new
QAudioFormat(QtXnl.long_get(nativehandle, Constant.QAUDIOINPUT_FORMAT));
22
}
23
24
public
long
read
(
byte
[] data,
int
ofst,
int
len){
25
return
QtXnl.widget_set_int2_object_value(nativehandle, Constant.QAUDIOINPUT_READ, ofst, len, data);
26
}
27
28
public
void
start
(){
29
QtXnl.widget_slot(nativehandle, Constant.QAUDIOINPUT_START);
30
}
31
32
public
void
stop
(){
33
QtXnl.widget_slot(nativehandle, Constant.QAUDIOINPUT_STOP);
34
}
35
36
public
void
reset
(){
37
QtXnl.widget_slot(nativehandle, Constant.QAUDIOINPUT_RESET);
38
}
39
40
public
void
suspend
(){
41
QtXnl.widget_slot(nativehandle, Constant.QAUDIOINPUT_SUSPEND);
42
}
43
44
public
void
resume
(){
45
QtXnl.widget_slot(nativehandle, Constant.QAUDIOINPUT_RESUME);
46
}
47
48
public
void
setBufferSize
(
int
bytes){
49
QtXnl.widget_set_vint_value(nativehandle, Constant.QAUDIOINPUT_SETBUFFERSIZE, bytes);
50
}
51
52
public
int
bufferSize
() {
53
return
QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOINPUT_BUFFERSIZE);
54
}
55
56
public
int
periodSize
() {
57
return
QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOINPUT_PERIODSIZE);
58
}
59
60
public
void
setNotifyInterval
(
int
milliSeconds){
61
QtXnl.widget_set_vint_value(nativehandle, Constant.QAUDIOINPUT_SETNOTIFYINTERVAL, milliSeconds);
62
}
63
64
public
int
notifyInterval
(){
65
return
QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOINPUT_NOTIFYINTERVAL);
66
}
67
68
public
long
processedUSecs
() {
69
return
QtXnl.long_get(nativehandle, Constant.QAUDIOINPUT_PROCESSEDUSECS);
70
}
71
72
public
long
elapsedUSecs
() {
73
return
QtXnl.long_get(nativehandle, Constant.QAUDIOINPUT_ELAPSEDUSECS);
74
}
75
76
public
QAudio.Error
error
() {
77
return
(QAudio.Error)QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOINPUT_ERROR);
78
}
79
80
public
QAudio.State
state
() {
81
return
(QAudio.State)QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOINPUT_STATE);
82
}
83
84
public
void
setVolume
(
double
v){
85
QtXnl.widget_set_double_value(nativehandle, Constant.QAUDIOINPUT_SETVOLUME, v);
86
}
87
88
public
double
volume
() {
89
return
QtXnl.widget_get_double_value(nativehandle, Constant.QAUDIOINPUT_VOLUME);
90
}
91
92
//signal
93
onAudioInputListener
_lis
;
94
public
void
setOnAudioInputListener
(onAudioInputListener l ){
95
_lis = l;
96
}
97
public
onAudioInputListener
getOnAudioInputListener
(){
98
return
_lis;
99
}
100
101
public
void
stateChanged
(QAudio.State s){
102
if
(_lis != nilptr){
103
_lis.stateChanged(
this
, s);
104
}
105
}
106
107
public
void
notify
(){
108
if
(_lis != nilptr){
109
_lis.notify(
this
);
110
}
111
}
112
};
113
};
Qt.QAudioInput.state
QAudio.State state()
Definition
QAudioInput.x:80
Qt.QAudioInput.format
QAudioFormat format()
Definition
QAudioInput.x:20
Qt.QAudioInput.getOnAudioInputListener
onAudioInputListener getOnAudioInputListener()
Definition
QAudioInput.x:97
Qt.QAudioInput.suspend
void suspend()
Definition
QAudioInput.x:40
Qt.QAudioInput.error
QAudio.Error error()
Definition
QAudioInput.x:76
Qt.QAudioInput.volume
double volume()
Definition
QAudioInput.x:88
Qt.QAudioInput.resume
void resume()
Definition
QAudioInput.x:44
Qt.QAudioInput.read
long read(byte [] data, int ofst, int len)
Definition
QAudioInput.x:24
Qt.QAudioInput.start
void start()
Definition
QAudioInput.x:28
Qt.QAudioInput.periodSize
int periodSize()
Definition
QAudioInput.x:56
Qt.QAudioInput.setVolume
void setVolume(double v)
Definition
QAudioInput.x:84
Qt.QAudioInput.create
bool create(@NotNilptr QObject parent, QAudioFormat f)
Definition
QAudioInput.x:12
Qt.QAudioInput.bufferSize
int bufferSize()
Definition
QAudioInput.x:52
Qt.QAudioInput.notify
void notify()
Definition
QAudioInput.x:107
Qt.QAudioInput.stop
void stop()
Definition
QAudioInput.x:32
Qt.QAudioInput.setNotifyInterval
void setNotifyInterval(int milliSeconds)
Definition
QAudioInput.x:60
Qt.QAudioInput.elapsedUSecs
long elapsedUSecs()
Definition
QAudioInput.x:72
Qt.QAudioInput.processedUSecs
long processedUSecs()
Definition
QAudioInput.x:68
Qt.QAudioInput.setOnAudioInputListener
void setOnAudioInputListener(onAudioInputListener l )
Definition
QAudioInput.x:94
Qt.QAudioInput._lis
onAudioInputListener _lis
Definition
QAudioInput.x:93
Qt.QAudioInput.reset
void reset()
Definition
QAudioInput.x:36
Qt.QAudioInput.notifyInterval
int notifyInterval()
Definition
QAudioInput.x:64
Qt.QAudioInput.stateChanged
void stateChanged(QAudio.State s)
Definition
QAudioInput.x:101
Qt.QAudioInput.setBufferSize
void setBufferSize(int bytes)
Definition
QAudioInput.x:48
制作者
1.9.8