Home
Up

Winamp Control Demo software

Demo1 demonstrates how easy it is to control WinAmp with the WinAmp Control.

For example in the Forms Init section just add: WinAmpctr1.Started:=True; and the control will start Winamp.
Besides controlling WinAmp you can also retrieve information from the control about the playing track. This is used to display the ID3 tag info in this demo. To really make life easy for the developer I have created an event when a track change occurs. The code for writing the ID3 tag in demo1 is simply:
procedure TForm1.WinAmpCtr1TrackChange(Sender: TObject);
begin
//If new track is playing update GUI with info
  Lab_Artist.Caption:=Winampctr1.TrackData.Artist;
  Lab_Album.Caption:=Winampctr1.TrackData.Album;
  Lab_Track.Caption:=Winampctr1.TrackData.Title;
  Lab_TrackNo.Caption:= IntToStr (WinAmpctr1.TrackNumber);
  Lab_TrackName.Caption:=WinAmpctr1.TrackFileName;
end;

Demo1 is Included in the WinAmpCtr1.1.zip file.