Click here to Skip to main content
11,581,982 members (80,005 online)


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

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

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

Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 7 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid