Retrieves the capabilities of a specified waveform-audio output device (ANSI version).
__stdcall __declspec(dllimport) int zplay_GetWaveOutInfo(ZPLAY_HANDLE handle, unsigned int nIndex, TWaveOutInfo * pWaveOutInfo);
Parameters |
Description |
ZPLAY_HANDLE handle |
ZPLAY handle. Get this handle with zplay_CreateZPlay. |
unsigned int nIndex |
Index of wave out device. Call EnumerateWaveOut or zplay_EnumerateWaveOutto get number of wave out devices. |
TWaveOutInfo * pWaveOutInfo |
Pointer to TWaveOutInfo 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 out devices and display info for each device.
int num = instance->EnumerateWaveOut(); printf("Number of wave out devices: %i\n", num); unsigned int i; TWaveOutInfo waveOutInfo; for(i = 0; i < num; i++) { if(instance->GetWaveOutInfo(i, &waveOutInfo)) printf("ManufacturerID: %i, ProductName:%s\n", waveOutInfo.ManufacturerID, waveOutInfo.ProductName); }
int num = zplay_EnumerateWaveOut(instance); printf("Number of wave out devices: %i\n", num); unsigned int i; TWaveOutInfo waveOutInfo; for(i = 0; i < num; i++) { if(zplay_GetWaveOutInfo(instance, i, &waveOutInfo)) printf("ManufacturerID: %i, ProductName:%s\n", waveOutInfo.ManufacturerID, waveOutInfo.ProductName); }
Copyright (c) 2010. Zoran Cindori - All rights reserved.
Web: http://libzplay.sourceforge.net/ Email: zcindori@inet.hr |