MSDN example code generates hard-coded brekapoint.
-
I just tried to run some code i got directly from MSDN, non-modified, but at the
acmFormatChoose
line it gives me a message about a "breakpoint called from code at 0xXXXXXX", anyone have a clue what's wrong?MMRESULT mmr;
ACMFORMATCHOOSE afc;
WAVEFORMATEX wfxSelection;
WAVEFORMATEX wfxEnum;// Initialize the ACMFORMATCHOOSE members.
memset(&afc, 0, sizeof(afc));afc.cbStruct = sizeof(afc);
afc.fdwStyle = 0L; // no special style flags
afc.hwndOwner = ghWnd; // hwnd of parent window
afc.pwfx = &wfxSelection; // wfx to receive selection
afc.cbwfx = sizeof(wfxSelection);
afc.pszTitle = TEXT("16 Bit PCM Selection");// Request that all 16-bit PCM formats be displayed for the user
// to select from.
memset(&wfxEnum, 0, sizeof(wfxEnum));wfxEnum.wFormatTag = WAVE_FORMAT_PCM;
wfxEnum.wBitsPerSample = 16;afc.fdwEnum = ACM_FORMATENUMF_WFORMATTAG | ACM_FORMATENUMF_WBITSPERSAMPLE;
afc.pwfxEnum = &wfxEnum;mmr = acmFormatChoose(&afc);
if ((MMSYSERR_NOERROR != mmr) && (ACMERR_CANCELED != mmr))
{
// There was a fatal error in bringing up the list
// dialog box (probably invalid input parameters).
}Thankyou in advance. -Rune Svendsen
-
I just tried to run some code i got directly from MSDN, non-modified, but at the
acmFormatChoose
line it gives me a message about a "breakpoint called from code at 0xXXXXXX", anyone have a clue what's wrong?MMRESULT mmr;
ACMFORMATCHOOSE afc;
WAVEFORMATEX wfxSelection;
WAVEFORMATEX wfxEnum;// Initialize the ACMFORMATCHOOSE members.
memset(&afc, 0, sizeof(afc));afc.cbStruct = sizeof(afc);
afc.fdwStyle = 0L; // no special style flags
afc.hwndOwner = ghWnd; // hwnd of parent window
afc.pwfx = &wfxSelection; // wfx to receive selection
afc.cbwfx = sizeof(wfxSelection);
afc.pszTitle = TEXT("16 Bit PCM Selection");// Request that all 16-bit PCM formats be displayed for the user
// to select from.
memset(&wfxEnum, 0, sizeof(wfxEnum));wfxEnum.wFormatTag = WAVE_FORMAT_PCM;
wfxEnum.wBitsPerSample = 16;afc.fdwEnum = ACM_FORMATENUMF_WFORMATTAG | ACM_FORMATENUMF_WBITSPERSAMPLE;
afc.pwfxEnum = &wfxEnum;mmr = acmFormatChoose(&afc);
if ((MMSYSERR_NOERROR != mmr) && (ACMERR_CANCELED != mmr))
{
// There was a fatal error in bringing up the list
// dialog box (probably invalid input parameters).
}Thankyou in advance. -Rune Svendsen
What is wfxEnum? Tomasz Sowinski -- http://www.shooltz.com
Never argue with an idiot, he'll bring you to his level and beat you with experience.
-
What is wfxEnum? Tomasz Sowinski -- http://www.shooltz.com
Never argue with an idiot, he'll bring you to his level and beat you with experience.
-
It's a WAVEFORMATEX structure used to restrict the formats showed, so only 16-bits per sample formats are showed in the list.
Sorry - I haven't noticed the declaration and was sure that this is your callback. If you want, send me your sources, I'll try to compile/run. Tomasz Sowinski -- http://www.shooltz.com
Never argue with an idiot, he'll bring you to his level and beat you with experience.
-
Sorry - I haven't noticed the declaration and was sure that this is your callback. If you want, send me your sources, I'll try to compile/run. Tomasz Sowinski -- http://www.shooltz.com
Never argue with an idiot, he'll bring you to his level and beat you with experience.
-
Its in the notification messages sent to you by CP server. Tomasz Sowinski -- http://www.shooltz.com
Never argue with an idiot, he'll bring you to his level and beat you with experience.
-
Its in the notification messages sent to you by CP server. Tomasz Sowinski -- http://www.shooltz.com
Never argue with an idiot, he'll bring you to his level and beat you with experience.
Are they sent to my email or what? cause my email address is runes@hotpop.com