Click here to Skip to main content
15,894,740 members
Home / Discussions / C#
   

C#

 
QuestionDirect Sound Pin
Michael Kurdík9-Nov-12 7:41
Michael Kurdík9-Nov-12 7:41 
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.
AnswerRe: Direct Sound Pin
Mycroft Holmes10-Nov-12 13:05
professionalMycroft Holmes10-Nov-12 13:05 
AnswerRe: Direct Sound Pin
Michael Kurdík17-Nov-12 0:53
Michael Kurdík17-Nov-12 0:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.