libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay::GetWaveOutInfo Method

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

C++
virtual __stdcall int GetWaveOutInfo(unsigned int nIndex, TWaveOutInfo * pWaveOutInfo) = 0;
Parameters 
Description 
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 
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;
TWaveOutInfo waveOutInfo;
for(i = 0; i < num; i++)
{
  if(instance->GetWaveOutInfo(i, &waveOutInfo))
    printf("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;
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