Retrieves the capabilities of a specified waveform-audio input device (UNICODE version).
__stdcall W_DECLSPEC int zplay_GetWaveInInfoW(ZPLAY_HANDLE handle, unsigned int nIndex, TWaveInInfoW * 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 TWaveInInfoW structure. User must allocate memory for this structure. |
Return Values |
Description |
1 |
All OK. |
0 |
Error. To get error message read here. |
Enumerate all wave in devices and display info for each device.
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); }
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 |