c++ - QAudioProbe is consuming excessive memory under Windows -


i writing mp3 player in qt , need monitor audio levels. this, attach qaudioprobe qmediaplayer. however, when in windows, memory consumption continuously increases. after 3 hours of playing audio, player exhausts memory on machine , ceases function.

memory consumption stable under osx. stable when attaching audio probe qaudioinput.

i've tried delete , deletelater on probe not result in reduction in memory usage according task manager. there alternatives qaudioprobe? running out of ideas how around memory issue.

qmediaplayer *player = new qmediaplayer(this); player->setmedia(qurl_to_my.mp3);  qaudioprobe *probe = new qaudioprobe(this); probe->setsource(player); // memory usage stabilizes if comment line out  player->play(); 

update: other things have tried qaudiodecoder - unfortunately, seems have same memory leak. it's not implemented under osx. executing code in separate qthread - still leaks memory.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -