The onCallback in TGLXSound item is just an normal event, here is how it works.
Procedure TForm1.StreamCallback(Stream: TGLXStreamItem; Name: String);
begin
// Do something here
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
GLXSoundEngine1.Streams[0].OnCallback:=StreamCallback;
end;
Bookmarks