Click here to Skip to main content
13,000,164 members (46,726 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    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.

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 25 Jun 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid