Einzelnen Beitrag anzeigen

Benutzerbild von sh17
sh17

Registriert seit: 26. Okt 2005
Ort: Radebeul
1.642 Beiträge
 
Delphi 11 Alexandria
 
#2

Re: MFV (DTMF) Töne generieren

  Alt 27. Feb 2006, 06:31
geht auch mit beliegender Ressource

Delphi-Quellcode:
const
  DELAY = 100;
var
   i : Integer;
begin
     for i := 1 to Length(Number) do begin
         case Number[i] of
             '0' : begin PlaySound('DTMF0', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             '1' : begin PlaySound('DTMF1', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             '2' : begin PlaySound('DTMF2', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             '3' : begin PlaySound('DTMF3', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             '4' : begin PlaySound('DTMF4', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             '5' : begin PlaySound('DTMF5', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             '6' : begin PlaySound('DTMF6', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             '7' : begin PlaySound('DTMF7', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             '8' : begin PlaySound('DTMF8', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             '9' : begin PlaySound('DTMF9', 0, SND_RESOURCE or SND_SYNC) Sleep(DELAY); end;
             ',' : Sleep(SpecificDelay);
         end;
     end;
Angehängte Dateien
Dateityp: zip dialwithdtmf_767.zip (36,3 KB, 43x aufgerufen)
Sven Harazim
--
  Mit Zitat antworten Zitat