Einzelnen Beitrag anzeigen

Benutzerbild von chaosben
chaosben

Registriert seit: 27. Apr 2005
Ort: Görlitz
1.358 Beiträge
 
Delphi XE2 Professional
 
#2

Re: Mixer auswählen mit bass.dll ???

  Alt 24. Apr 2009, 05:21
Du musst vorher mit BASS_RecordSetDevice() sagen, um welches Device es dir als nächstes geht.
Der so gesetzte Wert gilt für alle nachfolgenden Funktionsaufrufe in diesem Thread.

Eine Liste der verfügbaren Devices erhältst du so:
Delphi-Quellcode:
procedure TBass.ReadInputDevices;
var
  idx : Integer;
  P : PChar;
begin
  FInputDevices.Clear;

  idx := 0;
  P := BASS_RecordGetDeviceDescription(idx);

  repeat
    FInputDevices.AddObject(StrPas(P), TObject(idx));
    Inc(idx);
    P := BASS_RecordGetDeviceDescription(idx);
  until (not Assigned(P));

end;
FInputDevices ist in diesem Fall eine TStringList.
Benjamin Schwarze
If I have seen further it is by standing on the shoulders of Giants. (Isaac Newton)
  Mit Zitat antworten Zitat