Skip to content

Commit 9a42fe5

Browse files
committed
fixes for README.md
1 parent 22cb0bc commit 9a42fe5

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff 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
4859
First 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

86109
You 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

89112
using Doxyfile in main folder

0 commit comments

Comments
 (0)