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

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

C++
virtual __stdcall int GetWaveInInfoW(unsigned int nIndex, TWaveInInfoW * 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 TWaveInInfoW 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;
TWaveInInfoW waveInInfo;
for(i = 0; i < num; i++)
{
  if(instance->GetWaveInInfoW(i, &waveInInfo))
    wprintf(L"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;
TWaveInInfoW waveInInfo;
for(i = 0; i < num; i++)
{
  if(zplay_GetWaveInInfoW(instance, i, &waveInInfo))
    wprintf(L"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