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

Retrieves the capabilities of a specified waveform-audio output device.

C++
bool GetWaveOutInfo(System::UInt32 Index, TWaveOutInfo % Info);
Parameters 
Description 
System::UInt32 Index 
Index of wave out device. Call EnumerateWaveOut to get number of wave out devices. 
TWaveOutInfo % Info 
Reference to TWaveOutInfo. User must allocate memory for this structure. 
Return Values 
Description 
True 
All OK. 
False 
Error. To get error message read here
TWaveOutInfo WaveOutInfo;
unsigned int WaveOutNum = player->EnumerateWaveOut();
unsigned int i;
for(i = 0; i < WaveOutNum; i++)
{
  if(player->GetWaveOutInfo(i, WaveOutInfo))
  {
    MessageBox::Show(WaveOutInfo.ProductName );
  }
}
Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr