libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::zplay_GetWaveInInfo Function

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

C++
__stdcall W_DECLSPEC int zplay_GetWaveInInfo(ZPLAY_HANDLE handle, unsigned int nIndex, TWaveInInfo * pWaveInInfo);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
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