equal
deleted
inserted
replaced
58 #include <QtCore/qfile.h> |
58 #include <QtCore/qfile.h> |
59 #include <QtCore/qdebug.h> |
59 #include <QtCore/qdebug.h> |
60 #include <QtCore/qtimer.h> |
60 #include <QtCore/qtimer.h> |
61 #include <QtCore/qstring.h> |
61 #include <QtCore/qstring.h> |
62 #include <QtCore/qstringlist.h> |
62 #include <QtCore/qstringlist.h> |
|
63 #include <QtCore/qelapsedtimer.h> |
63 #include <QtCore/qdatetime.h> |
64 #include <QtCore/qdatetime.h> |
64 |
65 |
65 #include <QtMultimedia/qaudio.h> |
66 #include <QtMultimedia/qaudio.h> |
66 #include <QtMultimedia/qaudiodeviceinfo.h> |
67 #include <QtMultimedia/qaudiodeviceinfo.h> |
67 #include <QtMultimedia/qaudioengine.h> |
68 #include <QtMultimedia/qaudioengine.h> |
131 void close(); |
132 void close(); |
132 |
133 |
133 QTimer* timer; |
134 QTimer* timer; |
134 QByteArray m_device; |
135 QByteArray m_device; |
135 int bytesAvailable; |
136 int bytesAvailable; |
136 QTime timeStamp; |
137 QElapsedTimer timeStamp; |
137 QTime clockStamp; |
138 QElapsedTimer clockStamp; |
138 qint64 elapsedTimeOffset; |
139 qint64 elapsedTimeOffset; |
139 char* audioBuffer; |
140 char* audioBuffer; |
140 snd_pcm_t* handle; |
141 snd_pcm_t* handle; |
141 snd_async_handler_t* ahandler; |
142 snd_async_handler_t* ahandler; |
142 snd_pcm_access_t access; |
143 snd_pcm_access_t access; |