libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay::GetWaveInInfo Method

Retrieves the capabilities of a specified waveform-audio input device (ANSI version).

C++
virtual __stdcall int GetWaveInInfo(unsigned int nIndex, TWaveInInfo * pWaveInInfo) = 0;
Parameters 
Description 
unsigned int nIndex 
Index of wave out device. Call EnumerateWaveIn or zplay_EnumerateWaveInto get number of wave out devices. 
pWaveOutInfo 
Pointer to TWaveInInfo structure. User must allocate memory for this structure. 
Return Values 
Description 
All OK. 
Error. To get error message read here

Enumerate all wave in devices and display info for each device. 

ZPlay C++ Class interface  

int num = instance->EnumerateWaveIn();
printf("Number of wave in devices: %i\n", num);
unsigned int i;
TWaveInInfo waveInInfo;
for(i = 0; i < num; i++)
{
  if(instance->GetWaveInInfo(i, &waveInInfo))
    printf("ManufacturerID: %i, ProductName:%s\n", waveInInfo.ManufacturerID, waveInInfo.ProductName);
}

 

C Style interface

int num = zplay_EnumerateWaveIn(instance);
printf("Number of wave in devices: %i\n", num);
unsigned int i;
TWaveInInfo waveInInfo;
for(i = 0; i < num; i++)
{
  if(zplay_GetWaveInInfo(instance, i, &waveInInfo))
    printf("ManufacturerID: %i, ProductName:%s\n", waveInInfo.ManufacturerID, waveInInfo.ProductName);
}
Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr