Retrieves the capabilities of a specified waveform-audio output device (UNICODE version).
virtual __stdcall int GetWaveOutInfoW(unsigned int nIndex, TWaveOutInfoW * pWaveOutInfo) = 0;
Parameters |
Description |
unsigned int nIndex |
Index of wave out device. Call EnumerateWaveOut or zplay_EnumerateWaveOutto get number of wave out devices. |
TWaveOutInfoW * pWaveOutInfo |
Pointer to TWaveOutInfoW 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; TWaveOutInfoW waveOutInfo; for(i = 0; i < num; i++) { if(instance->GetWaveOutInfoW(i, &waveOutInfo)) wprintf(L"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; TWaveOutInfoW waveOutInfo; for(i = 0; i < num; i++) { if(zplay_GetWaveOutInfoW(instance, i, &waveOutInfo)) wprintf(L"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 |