equal
deleted
inserted
replaced
207 and the stateChanged() signal is emitted. |
207 and the stateChanged() signal is emitted. |
208 |
208 |
209 If a problem occurs during this process the error() is set to QAudio::OpenError, |
209 If a problem occurs during this process the error() is set to QAudio::OpenError, |
210 state() is set to QAudio::StoppedState and stateChanged() signal is emitted. |
210 state() is set to QAudio::StoppedState and stateChanged() signal is emitted. |
211 |
211 |
|
212 In either case, the stateChanged() signal may be emitted either synchronously |
|
213 during execution of the start() function or asynchronously after start() has |
|
214 returned to the caller. |
|
215 |
212 \sa QIODevice |
216 \sa QIODevice |
213 */ |
217 */ |
214 |
218 |
215 void QAudioOutput::start(QIODevice* device) |
219 void QAudioOutput::start(QIODevice* device) |
216 { |
220 { |
225 QAudio::IdleState, error() is set to QAudio::NoError |
229 QAudio::IdleState, error() is set to QAudio::NoError |
226 and the stateChanged() signal is emitted. |
230 and the stateChanged() signal is emitted. |
227 |
231 |
228 If a problem occurs during this process the error() is set to QAudio::OpenError, |
232 If a problem occurs during this process the error() is set to QAudio::OpenError, |
229 state() is set to QAudio::StoppedState and stateChanged() signal is emitted. |
233 state() is set to QAudio::StoppedState and stateChanged() signal is emitted. |
|
234 |
|
235 In either case, the stateChanged() signal may be emitted either synchronously |
|
236 during execution of the start() function or asynchronously after start() has |
|
237 returned to the caller. |
230 |
238 |
231 \sa QIODevice |
239 \sa QIODevice |
232 */ |
240 */ |
233 |
241 |
234 QIODevice* QAudioOutput::start() |
242 QIODevice* QAudioOutput::start() |
274 |
282 |
275 Sets error() to QAudio::NoError. |
283 Sets error() to QAudio::NoError. |
276 Sets state() to QAudio::ActiveState if you previously called start(QIODevice*). |
284 Sets state() to QAudio::ActiveState if you previously called start(QIODevice*). |
277 Sets state() to QAudio::IdleState if you previously called start(). |
285 Sets state() to QAudio::IdleState if you previously called start(). |
278 emits stateChanged() signal. |
286 emits stateChanged() signal. |
|
287 |
|
288 Note: signal will always be emitted during execution of the resume() function. |
279 */ |
289 */ |
280 |
290 |
281 void QAudioOutput::resume() |
291 void QAudioOutput::resume() |
282 { |
292 { |
283 d->resume(); |
293 d->resume(); |