Home Play raw pcm from memory buffer in QMediaPlayer from Qt5
Reply: 0

Play raw pcm from memory buffer in QMediaPlayer from Qt5

al.zatv
1#
al.zatv Published in 2018-02-13 11:30:22Z

How to play raw (headerless) pcm audio data from memory buffer in Qt5? (16khz,16bits/sample, signed int, little-endian -- if it is matter).

My requirements are: to play the sound, detect and change current position. I can do it with QMediaPlayer, but with "wav" buffers only. I can add standard wav header before data, but may be there is better solution?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.294733 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO