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

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

C++
__stdcall __declspec(dllimport) int zplay_GetWaveOutInfoW(ZPLAY_HANDLE handle, unsigned int nIndex, TWaveOutInfoW * 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. 
TWaveOutInfoW * pWaveOutInfo 
Pointer to TWaveOutInfoW structure. User must allocate memory for this structure. 
Return Values 
Description 
All OK. 
Error. To get error message read here

Enumerate all wave out devices and display info for each device. 

ZPlay C++ Class interface  

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);
}

 

C Style interface

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