Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Audio > Problem with Mi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 41 of 129
Post > Topic >>

Problem with Mixer API code

by Atri Mandal <mandala@[EMAIL PROTECTED] > Jan 14, 2004 at 07:38 PM

I'm trying to set the controls for the audio line
MIXERLINE_COMPONENTTYPE_DST_WAVEIN using the mixer APIs...
The following code gives me junk values for the LineID and szName values
for this audio line...
Can anyone tell me why??
-------------------------------------------------------------------------------------------

mmResult =
waveInOpen(&m_hWaveIn,WAVE_MAPPER,&m_waveFormatEx,(DWORD)hWnd,NULL,CALLBACK_THREAD);

  if(mmResult != MMSYSERR_NOERROR){
  printf("waveInOpen Failed!\n");
  return;
 }
 printf("waveInOpen successfully returned\n");

  mmResult =
mixerOpen(&MixerHandle,(DWORD)m_hWaveIn,0,0,MIXER_OBJECTF_HWAVEIN);
  if (mmResult != MMSYSERR_NOERROR)
  {
     printf("Device does not have mixer support! -- %08X\n", err);
   goto CloseMixer;
  }
  printf("Mixer Sucessfully opened\n");

   MIXERLINE mixerline;

  mixerLine.cbStruct = sizeof(MIXERLINE);
  mixerLine.dwComponentType = MIXERLINE_COMPONENTTYPE_DST_WAVEIN;
  mmResult = mixerGetLineInfo((HMIXEROBJ)MixerHandle, &mixerLine,
MIXER_GETLINEINFOF_COMPONENTTYPE);
  if (mmResult != MMSYSERR_NOERROR)
  {
   printf("Device does not have a WAVE recording control! -- %08X\n",
err);
   goto CloseMixer;
  }

  printf("Line name=%s,%ld\n",mixerline.szName,mixerline.dwLineID);
------------------------------------------------------------------------------------------




 3 Posts in Topic:
Problem with Mixer API code
Atri Mandal <mandala@[  2004-01-14 19:38:23 
Re: Problem with Mixer API code
Jack Klein <jackklein@  2004-01-15 04:04:41 
Re: Problem with Mixer API code
Atri Mandal <mandala@[  2004-01-14 21:25:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 10:08:58 CDT 2008.