4 @SuppressWarnings public class QAudioDeviceInfo : QCore{
6 private QAudioDeviceInfo(long h){
11 return QtXnl.widget_get_bool_value(nativehandle, Constant.QAUDIODEVICEINFO_ISNULL);
15 return (
String)QtXnl.core_getString(nativehandle, Constant.QAUDIODEVICEINFO_NAME);
19 return QtXnl.core_getintlong(nativehandle, Constant.QAUDIODEVICEINFO_ISFORMATSUPPORTED, format.nativehandle) != 0;
23 return new QAudioFormat(QtXnl.long_get(nativehandle, Constant.QAUDIODEVICEINFO_PREFERREDFORMAT));
27 return new QAudioFormat(QtXnl.object_get_long_int(nativehandle, Constant.QAUDIODEVICEINFO_NEARESTFORMAT, format.nativehandle, 0));
31 return (
String[])QtXnl.core_getString(nativehandle, Constant.QAUDIODEVICEINFO_SUPPORTEDCODECS);
35 return (
int[])QtXnl.core_getString(nativehandle, Constant.QAUDIODEVICEINFO_SUPPORTEDSAMPLERATES);
39 return (
int[])QtXnl.core_getString(nativehandle, Constant.QAUDIODEVICEINFO_SUPPORTEDCHANNELCOUNTS);
43 return (
int[])QtXnl.core_getString(nativehandle, Constant.QAUDIODEVICEINFO_SUPPORTEDSAMPLESIZES);
47 return QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIODEVICEINFO_SUPPORTEDBYTEORDERS);
51 return (QAudioFormat.SampleType[])QtXnl.core_getString(nativehandle, Constant.QAUDIODEVICEINFO_SUPPORTEDSAMPLETYPES);
55 return new QAudioDeviceInfo(QtXnl.long_get(0, Constant.QAUDIODEVICEINFO_DEFAULTINPUTDEVICE));
59 return new QAudioDeviceInfo(QtXnl.long_get(0, Constant.QAUDIODEVICEINFO_DEFAULTOUTPUTDEVICE));
63 long [] ha = (
long []) QtXnl.object_get_handle(0l, Constant.QAUDIODEVICEINFO_AVAILABLEDEVICES, mode);
65 QAudioDeviceInfo[] qai =
new QAudioDeviceInfo[ha.length];
66 for (
int i = 0; i < ha.length; i++){
67 qai[i] =
new QAudioDeviceInfo(ha[i]);
75 QtXnl.widget_slot(nativehandle, Constant.QAUDIODEVICEINFO_FINALIZE);
QAudioFormat.SampleType [] supportedSampleTypes()
static QAudioDeviceInfo defaultInputDevice()
static QAudioDeviceInfo defaultOutputDevice()
bool isFormatSupported(QAudioFormat format)
QAudioFormat preferredFormat()
String [] supportedCodecs()
int [] supportedSampleRates()
int [] supportedChannelCounts()
int [] supportedSampleSizes()
int supportedByteOrders()
static QAudioDeviceInfo [] availableDevices(QAudio.Mode mode)
QAudioFormat nearestFormat(QAudioFormat format)