Click here to Skip to main content
15,920,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: seeing TRACE() ouputs Pin
David Crow29-Jul-03 8:42
David Crow29-Jul-03 8:42 
GeneralRe: seeing TRACE() ouputs Pin
Le centriste29-Jul-03 8:43
Le centriste29-Jul-03 8:43 
GeneralRe: seeing TRACE() ouputs Pin
Ryan Binns29-Jul-03 18:41
Ryan Binns29-Jul-03 18:41 
GeneralRe: seeing TRACE() ouputs Pin
Le centriste30-Jul-03 3:24
Le centriste30-Jul-03 3:24 
GeneralRe: seeing TRACE() ouputs Pin
Ryan Binns30-Jul-03 3:27
Ryan Binns30-Jul-03 3:27 
QuestionHow to play a specific buffer,not a file? Pin
xiaochnegwx29-Jul-03 8:17
xiaochnegwx29-Jul-03 8:17 
AnswerRe: How to play a specific buffer,not a file? Pin
David Crow29-Jul-03 8:36
David Crow29-Jul-03 8:36 
GeneralHelp! Pin
xiaochnegwx29-Jul-03 19:03
xiaochnegwx29-Jul-03 19:03 
Confused | :confused: Well,now i am doing a web streamming project. Client receives data from the server via UDP protocol and plays the data buffer(wave).
Now I have tried many methods,including MCI and DirectSound,but still haven't found a better solution.
With MCI,I use waveOutWrite() to play the data buffer.But waveOutWrite() will spend about 0.2 second to send the data block to the playing device and then return.This is deal to that there is about 0.2s interval
when playing the sound continually. I can't fix the problem. So now it is not smooth when playing the sound. (the sound buffer is about 800K).
DirectSound is usually used for game,and it base on focus.This is meant that when the program loses focus it can't play the sound in the background. Now I need it to play the sound whenever the program loses focus or not.

Now I am seeking a method to play the sound buffer(wave) without any delays.
My current method that plays the sound buffer go as follows:
when MCI(waveOutWrite()) finishs playing the current buffer,it singals the event. Thread receives this notification,then it fills in the buffer with new data.
And then use waveOutWrite() playing it again.
but waveOutWrite() has about 0.2s delay.
Now I want to find a better method without any delays.
Can anyone help me? You can contact me at this email address: xiaochengwx@163.com
Hoping your replies.
AnswerRe: How to play a specific buffer,not a file? Pin
Alexander M.,29-Jul-03 9:32
Alexander M.,29-Jul-03 9:32 
AnswerRe: How to play a specific buffer,not a file? Pin
kochhar29-Jul-03 13:09
kochhar29-Jul-03 13:09 
GeneralRe: How to play a specific buffer,not a file? Pin
xiaochnegwx29-Jul-03 19:05
xiaochnegwx29-Jul-03 19:05 
Generalwriting a click event for CDialog Pin
haritadala29-Jul-03 8:07
haritadala29-Jul-03 8:07 
GeneralRe: writing a click event for CDialog Pin
Frank K29-Jul-03 19:23
Frank K29-Jul-03 19:23 
QuestionHow to hide the PropertyPage headers Pin
Eugene Pustovoyt29-Jul-03 7:21
Eugene Pustovoyt29-Jul-03 7:21 
AnswerRe: How to hide the PropertyPage headers Pin
David Crow29-Jul-03 7:23
David Crow29-Jul-03 7:23 
GeneralSubclassing CListCtrl in a CListView Pin
#realJSOP29-Jul-03 7:07
professional#realJSOP29-Jul-03 7:07 
GeneralRe: Subclassing CListCtrl in a CListView Pin
David Crow29-Jul-03 7:21
David Crow29-Jul-03 7:21 
GeneralRe: Subclassing CListCtrl in a CListView Pin
Chris Meech29-Jul-03 7:52
Chris Meech29-Jul-03 7:52 
GeneralRe: Subclassing CListCtrl in a CListView Pin
#realJSOP29-Jul-03 8:24
professional#realJSOP29-Jul-03 8:24 
GeneralRe: Subclassing CListCtrl in a CListView Pin
Chris Meech29-Jul-03 8:32
Chris Meech29-Jul-03 8:32 
GeneralRe: Subclassing CListCtrl in a CListView Pin
#realJSOP29-Jul-03 8:51
professional#realJSOP29-Jul-03 8:51 
GeneralRe: Subclassing CListCtrl in a CListView Pin
Tom Archer29-Jul-03 10:26
Tom Archer29-Jul-03 10:26 
GeneralRe: Subclassing CListCtrl in a CListView Pin
#realJSOP30-Jul-03 3:07
professional#realJSOP30-Jul-03 3:07 
GeneralRe: Subclassing CListCtrl in a CListView Pin
Tom Archer29-Jul-03 10:28
Tom Archer29-Jul-03 10:28 
GeneralRe: Subclassing CListCtrl in a CListView Pin
#realJSOP30-Jul-03 3:08
professional#realJSOP30-Jul-03 3:08 

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.