5 @SuppressWarnings public class QAudioFormat : QCore{
6 public enum SampleType { Unknown, SignedInt, UnSignedInt, Float };
13 nativehandle = QtXnl.createNObject(QType.qtAudioFormat, 0);
14 if (nativehandle == 0){
20 return QtXnl.widget_get_bool_value(nativehandle, Constant.QAUDIOFORMAT_ISVALID);
24 QtXnl.widget_set_vint_value(nativehandle, Constant.QAUDIOFORMAT_SETSAMPLERATE, sampleRate);
28 return QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOFORMAT_SAMPLERATE);
32 QtXnl.widget_set_vint_value(nativehandle, Constant.QAUDIOFORMAT_SETCHANNELCOUNT, channelCount);
36 return QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOFORMAT_CHANNELCOUNT);
40 QtXnl.widget_set_vint_value(nativehandle, Constant.QAUDIOFORMAT_SETSAMPLESIZE, sampleSize);
44 return QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOFORMAT_SAMPLESIZE);
48 QtXnl.widget_slot_string(nativehandle, Constant.QAUDIOFORMAT_SETCODEC, codec);
52 return (
String)QtXnl.core_getString(nativehandle, Constant.QAUDIOFORMAT_CODEC);
56 QtXnl.widget_set_vint_value(nativehandle, Constant.QAUDIOFORMAT_SETBYTEORDER, byteOrder);
60 return (Endian)QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOFORMAT_BYTEORDER);
64 QtXnl.widget_set_vint_value(nativehandle, Constant.QAUDIOFORMAT_SETSAMPLETYPE, sampleType);
68 return (SampleType)QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOFORMAT_SAMPLETYPE);
73 return QtXnl.core_getintlong(nativehandle, Constant.QAUDIOFORMAT_BYTESFORDURATION, duration);
77 return QtXnl.object_get_long_int(nativehandle, Constant.QAUDIOFORMAT_DURATIONFORBYTES, 0, byteCount);
81 return QtXnl.widget_set_bint_value(nativehandle, Constant.QAUDIOFORMAT_BYTESFORFRAMES, frameCount);
85 return QtXnl.widget_set_bint_value(nativehandle, Constant.QAUDIOFORMAT_FRAMESFORBYTES, byteCount);
89 return QtXnl.core_getintlong(nativehandle, Constant.QAUDIOFORMAT_FRAMESFORDURATION, duration);
93 return QtXnl.object_get_long_int(nativehandle, Constant.QAUDIOFORMAT_DURATIONFORFRAMES, 0, frameCount);
97 return QtXnl.widget_get_int_value(nativehandle, Constant.QAUDIOFORMAT_BYTESPERFRAME);
100 QtXnl.widget_slot(nativehandle, Constant.QAUDIOFORMAT_FINALIZE);