File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,17 @@ Finally, you need initialize QAudioInput:
4444 audioInput->start(m_Codec2Writer);
4545```
4646
47+ At the end do not forget flush buffers and close file.
48+
49+ ```
50+ audioInput->stop();
51+
52+ encoder->stop();
53+
54+ outputFile->flush();
55+ outputFile->close();
56+ ```
57+
4758# Usage for playing voice
4859First of all you need open output file:
4960
@@ -80,10 +91,22 @@ Finally, you need create audio QAudioOutput for plyaing decoded data:
8091
8192 audioOutput->start(decoder);
8293```
94+
95+ At the end do not forget flush buffers and close file.
96+
97+ ```
98+ audioOutput->stop();
99+
100+ decoder->stop();
101+
102+ audioInput->flush();
103+ audioInput->close();
104+ ```
105+
83106
84107# Documentation
85108
86109You can build documentation using Doxygen which can be found at:
87- http://www.stack.nl/~dimitri/doxygen/download.html
110+ http://www.stack.nl/~dimitri/doxygen
88111
89112using Doxyfile in main folder
You can’t perform that action at this time.
0 commit comments