We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb0505 commit c48c802Copy full SHA for c48c802
1 file changed
README.md
@@ -40,16 +40,19 @@ Finally, you need initialize QAudioInput:
40
41
# Usage for playing voice
42
First of all you need open output file:
43
+
44
audioInput = new QFile(m_WorkingFileName);
45
audioInput->open(QIODevice::ReadOnly);
46
47
Next you need create decoder:
48
49
decoder = new QCodec2Decoder(audioInput, this);
50
decoder->setCodecMode(ui->cbBitrate->currentData().toInt());
51
decoder->setNaturalEncoding(ui->cbEncodingType->currentData().toBool());
52
decoder->start();
53
54
Finally, you need create audio QAudioOutput for plyaing decoded data:
55
56
QAudioFormat format = QCodec2BaseClass::codec2AudioFormat();
57
58
audioOutput = new QAudioOutput(deviceInfo, format, this);
0 commit comments