|
Hi, everybody.
My app uses a tablist and on each tab is option for replaying and rendering WAV file. One file is for one tab and another file for another tab, and so on.
My solution is folowing : WAV file is loaded in byte array for fast plotting and this array is common for all of tabs. When it will switch tab to another tab, data in array going to change according file for tab. For replay is used SecondBuffer of DirectSound. When are data loaded to SecondBuffer from array of bytes, allocated memory on PC increases... Is any option, how to release memory from SecondBuffer after playing? Or... If have anybody some other solution for WAV playing?
Thank you very much.
|
|
|
|
|
I'm not going to be of any help here, I have such a negative reaction to noisy applications (other than games) that I rarely even look for an option to silence them, I simply kill the page or uninstall the app! Please, please give the user the option to silence your app unless it is an integral part of your solution (a sound on a tab does not seem to qualify for integral!).
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I solved it so, that I have small SeccondaryBuffer (size is much smaller than size of replaying WAV) and SeccondaryBuffer is in loop. Paralel Timer writes new data in to small SeccondaryBuffer from large byte array of WAV.
|
|
|
|