equal
deleted
inserted
replaced
46 #include <qaudiooutput.h> |
46 #include <qaudiooutput.h> |
47 #include <qaudiodeviceinfo.h> |
47 #include <qaudiodeviceinfo.h> |
48 #include <qaudio.h> |
48 #include <qaudio.h> |
49 #include <qaudioformat.h> |
49 #include <qaudioformat.h> |
50 |
50 |
|
51 #if defined(Q_OS_SYMBIAN) |
|
52 #define SRCDIR "" |
|
53 #endif |
51 |
54 |
52 class tst_QAudioOutput : public QObject |
55 class tst_QAudioOutput : public QObject |
53 { |
56 { |
54 Q_OBJECT |
57 Q_OBJECT |
55 public: |
58 public: |
129 } |
132 } |
130 |
133 |
131 void tst_QAudioOutput::pullFile() |
134 void tst_QAudioOutput::pullFile() |
132 { |
135 { |
133 if(available) { |
136 if(available) { |
134 QFile file(SRCDIR "4.wav"); |
137 QFile file(SRCDIR"4.wav"); |
135 QVERIFY(file.exists()); |
138 QVERIFY(file.exists()); |
136 file.open(QIODevice::ReadOnly); |
139 file.open(QIODevice::ReadOnly); |
137 |
140 |
138 QSignalSpy readSignal(audio, SIGNAL(notify())); |
141 QSignalSpy readSignal(audio, SIGNAL(notify())); |
139 QSignalSpy stateSignal(audio, SIGNAL(stateChanged(QAudio::State))); |
142 QSignalSpy stateSignal(audio, SIGNAL(stateChanged(QAudio::State))); |
176 } |
179 } |
177 |
180 |
178 void tst_QAudioOutput::pushFile() |
181 void tst_QAudioOutput::pushFile() |
179 { |
182 { |
180 if(available) { |
183 if(available) { |
181 QFile file(SRCDIR "4.wav"); |
184 QFile file(SRCDIR"4.wav"); |
182 QVERIFY(file.exists()); |
185 QVERIFY(file.exists()); |
183 file.open(QIODevice::ReadOnly); |
186 file.open(QIODevice::ReadOnly); |
184 |
187 |
185 const qint64 fileSize = file.size(); |
188 const qint64 fileSize = file.size(); |
186 |
189 |