M
M
mrZurg2015-03-05 14:19:22
Qt
mrZurg, 2015-03-05 14:19:22

Qt: QAudioOutput: Why hangs when playback stops?

QAudioOutput: Why hangs when playback stops?
I'm trying to make a similar player for a wav file:

QAudioFormat audioFormat;
//выставляю параметры для формата 

QAudioOutput* audioIn = new QAudioOutput(audioFormat);

further, when the button is clicked, it fires:
audioIn->start(&audioDev);
and the sound goes, then when you press pause:
audioIn->suspend();
and the program freezes , similarly when using ->stop()
How to fix this? And I don’t use QThread (here it seems like you need to do without them somehow)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question