Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CamStudio Project - Runs But Gives Debug Assertions Pin
Richard MacCutchan3-Sep-13 9:23
mveRichard MacCutchan3-Sep-13 9:23 
QuestionUsing CDHtmlDialog in MFC Dialog Pin
Don Guy2-Sep-13 7:47
Don Guy2-Sep-13 7:47 
SuggestionRe: Using CDHtmlDialog in MFC Dialog Pin
Richard MacCutchan2-Sep-13 21:35
mveRichard MacCutchan2-Sep-13 21:35 
AnswerRe: Using CDHtmlDialog in MFC Dialog Pin
Erudite_Eric3-Sep-13 3:43
Erudite_Eric3-Sep-13 3:43 
QuestionC++ code to create thread to handle method Pin
pk jain1-Sep-13 22:16
pk jain1-Sep-13 22:16 
AnswerRe: C++ code to create thread to handle method Pin
Richard MacCutchan1-Sep-13 23:01
mveRichard MacCutchan1-Sep-13 23:01 
AnswerRe: C++ code to create thread to handle method Pin
pasztorpisti1-Sep-13 23:25
pasztorpisti1-Sep-13 23:25 
GeneralRe: C++ code to create thread to handle method Pin
Erudite_Eric3-Sep-13 3:52
Erudite_Eric3-Sep-13 3:52 
GeneralRe: C++ code to create thread to handle method Pin
pasztorpisti3-Sep-13 4:22
pasztorpisti3-Sep-13 4:22 
GeneralRe: C++ code to create thread to handle method Pin
Erudite_Eric3-Sep-13 21:43
Erudite_Eric3-Sep-13 21:43 
GeneralRe: C++ code to create thread to handle method Pin
pasztorpisti3-Sep-13 22:00
pasztorpisti3-Sep-13 22:00 
GeneralRe: C++ code to create thread to handle method Pin
Erudite_Eric4-Sep-13 4:47
Erudite_Eric4-Sep-13 4:47 
GeneralRe: C++ code to create thread to handle method Pin
pasztorpisti4-Sep-13 4:51
pasztorpisti4-Sep-13 4:51 
GeneralRe: C++ code to create thread to handle method Pin
Erudite_Eric5-Sep-13 21:33
Erudite_Eric5-Sep-13 21:33 
GeneralRe: C++ code to create thread to handle method Pin
pasztorpisti5-Sep-13 22:38
pasztorpisti5-Sep-13 22:38 
AnswerRe: C++ code to create thread to handle method Pin
Erudite_Eric3-Sep-13 3:50
Erudite_Eric3-Sep-13 3:50 
AnswerRe: C++ code to create thread to handle method Pin
Eytukan6-Sep-13 2:49
Eytukan6-Sep-13 2:49 
QuestionProblem playing (rendering) wave file using WASAPI Pin
AmbiguousName1-Sep-13 19:25
AmbiguousName1-Sep-13 19:25 
Hello. I am trying to play a wave stream through WASAPI. I am trying to use the code available in online msdn. Here is what I am trying.
C++
hResult = pAudioClient->Initialize(AUDCLNT_SHAREMODE_SHARED, 0, 1000000000, 0, pWaveFormatEx, NULL);
if(FAILED(hResult)) return;

UINT nTotalBufferSize = 0;
pAudioClient->GetBufferSize(&nTotalBufferSize);

IAudioRenderClient *pAudioRenderClient = GetRenderClient(pAudioClient);

BYTE* pData = NULL;
hResult = pAudioRenderClient->GetBuffer(nTotalBufferSize, &pData); // get all the buffer

hResult = pAudioClient->GetService(IID_IAudioRenderClient, (void**)&pAudioRenderClient);
if(FAILED(hResult)) return;

::memcpy(pData, pDataPCM, nTotalBufferSize);

hResult = pAudioRenderClient->ReleaseBuffer(nTotalBufferSize, 0);

hResult = pAudioClient->Start(); // Start Playing

DWORD dwFlags = 0;

while(TRUE)
{
    ::Sleep(500);

    UINT nFramesPadding = 0, nFramesAvailable;
    hResult = pAudioClient->GetCurrentPadding(&nFramesPadding);

            /* HERE I MEANT TO DO SOMETHING TO LISTEN TO THIS BUFFER */

    TRACE("%d\n", nFramesPadding);
}

hResult = pAudioClient->Stop();


I am NOT getting any error but I cannot listen to the buffer as well. So what should I do in the loop to listen to this buffer? Thanks.

This world is going to explode due to international politics, SOON.


modified 2-Sep-13 1:33am.

QuestionMFCPropertyGridProperty masked edit control Pin
Richard Andrew x641-Sep-13 18:02
professionalRichard Andrew x641-Sep-13 18:02 
AnswerRe: MFCPropertyGridProperty masked edit control Pin
D G McKay1-Sep-13 23:17
D G McKay1-Sep-13 23:17 
GeneralRe: MFCPropertyGridProperty masked edit control Pin
Richard Andrew x641-Sep-13 23:35
professionalRichard Andrew x641-Sep-13 23:35 
Generalabout destructor Pin
Syeda Fatimah30-Aug-13 21:40
Syeda Fatimah30-Aug-13 21:40 
GeneralRe: about destructor Pin
Richard MacCutchan30-Aug-13 21:57
mveRichard MacCutchan30-Aug-13 21:57 
GeneralRe: about destructor Pin
«_Superman_»31-Aug-13 22:58
professional«_Superman_»31-Aug-13 22:58 
GeneralRe: about destructor Pin
Ajay_Tiwari3-Sep-13 0:40
Ajay_Tiwari3-Sep-13 0:40 

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.