libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
ZPlay.GetWaveOutInfo Method

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

Pascal
function GetWaveOutInfo(Index: Cardinal; out WaveOutInfo: TWaveOutInfo): Integer;
Parameters 
Description 
Index: Cardinal 
Index of wave out device. Call EnumerateWaveOut to get number of wave out devices. 
out WaveOutInfo: TWaveOutInfo 
Reference to TWaveOutInfo. User must allocate memory for this structure. 
Return Values 
Description 
True 
All OK. 
False 
Error. To get error message read here
var
  I: Integer;
  J: Integer;
  WaveOutInfo: TWaveOutInfo;
begin
  i := player.EnumerateWaveOut;
  for j:= 0 to i - 1 do
  begin
    player.GetWaveOutInfo(j, WaveOutInfo);
    MessageBox(0, PANsiChar(waveoutinfo.ProductName), 'Info' ,0);
  end;
end;
Copyright (c) 2010. Zoran Cindori - All rights reserved.

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

Email: zcindori@inet.hr