Thema: Delphi ISDN: Anrufer erkennen

Einzelnen Beitrag anzeigen

DevStar

Registriert seit: 26. Aug 2007
79 Beiträge
 
#11

Re: ISDN: CAPI-Komponente von Dirk Rübenbach (RWTH AAchen)

  Alt 15. Mai 2009, 07:26
Oder so?

Delphi-Quellcode:
procedure TCAPIISDN.Play(aConnectionID:integer; Filename:string);
begin
  if not assigned(FCapi) then exit;
  if FConnectionInfos.IDItems[aConnectionID]=NIL then exit;
  if assigned(FConnectionInfos.IDItems[aConnectionID].PWavFile) then begin
    //devstar
    FConnectionInfos.IDItems[aConnectionID].PWavFile := Wave.open(Filename);
    if _debug>1 then
      debug('This Connection had an open Input-File. Closed.');
  end;
  FConnectionInfos.IDItems[aConnectionID].PWavFile := Wave.open(Filename);
  if (Wave.Error=0) and (_debug > 1) then
    debug('Playing started')
  else if (wave.Error>0) and (_debug>0) then
    debug('??Error opening Wav-File');
  FConnectionInfos.IDItems[aConnectionID].SendingMode := smWave;
end;
  Mit Zitat antworten Zitat