equal
deleted
inserted
replaced
72 |
72 |
73 QT_BEGIN_NAMESPACE |
73 QT_BEGIN_NAMESPACE |
74 |
74 |
75 class QTimer; |
75 class QTimer; |
76 class QIODevice; |
76 class QIODevice; |
|
77 class QAbstractAudioDeviceInfo; |
77 |
78 |
78 namespace |
79 namespace QtMultimediaInternal |
79 { |
80 { |
80 class QAudioInputBuffer; |
81 class QAudioInputBuffer; |
81 } |
82 } |
82 |
83 |
83 class QAudioInputPrivate : public QAbstractAudioInput |
84 class QAudioInputPrivate : public QAbstractAudioInput |
95 AudioDeviceID audioDeviceId; |
96 AudioDeviceID audioDeviceId; |
96 Float64 clockFrequency; |
97 Float64 clockFrequency; |
97 UInt64 startTime; |
98 UInt64 startTime; |
98 QAudio::Error errorCode; |
99 QAudio::Error errorCode; |
99 QAudio::State stateCode; |
100 QAudio::State stateCode; |
100 QAudioInputBuffer* audioBuffer; |
101 QtMultimediaInternal::QAudioInputBuffer* audioBuffer; |
101 QMutex mutex; |
102 QMutex mutex; |
102 QWaitCondition threadFinished; |
103 QWaitCondition threadFinished; |
103 QAtomicInt audioThreadState; |
104 QAtomicInt audioThreadState; |
104 QTimer* intervalTimer; |
105 QTimer* intervalTimer; |
105 AudioStreamBasicDescription streamFormat; |
106 AudioStreamBasicDescription streamFormat; |
106 AudioStreamBasicDescription deviceFormat; |
107 AudioStreamBasicDescription deviceFormat; |
|
108 QAbstractAudioDeviceInfo *audioDeviceInfo; |
107 |
109 |
108 QAudioInputPrivate(const QByteArray& device, QAudioFormat const& format); |
110 QAudioInputPrivate(const QByteArray& device, QAudioFormat const& format); |
109 ~QAudioInputPrivate(); |
111 ~QAudioInputPrivate(); |
110 |
112 |
111 bool open(); |
113 bool open(); |