Skip to content

Commit c48c802

Browse files
committed
fixing README.md
1 parent ffb0505 commit c48c802

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,19 @@ Finally, you need initialize QAudioInput:
4040

4141
# Usage for playing voice
4242
First of all you need open output file:
43+
4344
audioInput = new QFile(m_WorkingFileName);
4445
audioInput->open(QIODevice::ReadOnly);
4546

4647
Next you need create decoder:
48+
4749
decoder = new QCodec2Decoder(audioInput, this);
4850
decoder->setCodecMode(ui->cbBitrate->currentData().toInt());
4951
decoder->setNaturalEncoding(ui->cbEncodingType->currentData().toBool());
5052
decoder->start();
5153

5254
Finally, you need create audio QAudioOutput for plyaing decoded data:
55+
5356
QAudioFormat format = QCodec2BaseClass::codec2AudioFormat();
5457

5558
audioOutput = new QAudioOutput(deviceInfo, format, this);

0 commit comments

Comments
 (0)