Autor Beitrag
lb
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27

Win98, win2000, winxp, linux
D5,Kylix
BeitragVerfasst: Fr 31.10.03 17:37 
Hallo

Kann mir jemand sagen, ob es eine Pozedur in Delphi gibt, mit der man einen Sound bestimmter Lautstaerke und Frequenz erzeugen kann?

Frueher in Pascal hat es eine solche Funktion "sound (freq: Real; vol: Real)" scheinbar gegeben.

:oops:

Moderiert von user profile icontommie-lie: Topic verschoben
Moderiert von user profile iconTino: Titel geändert.

_________________
Aus dieser hohlen Gasse muss er kommen
Guesse Lutz
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: So 02.11.03 17:29 
die Fkt heißt

ausblenden Delphi-Quelltext
1:
windows.beep					


(windows. nicht vergessen)
Achtung, so lange wie der Sound spielt, bleibt das Programm hängen.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: So 02.11.03 23:28 
Windows 9x ignoriert aber sowohl den Frequenz- als auch den Duration-Parameter von beep(). Sowas wie "volume" gibt es bei beep() sowieso nicht.

Spontan fällt mir da nur die Soundkarte ein, mit der man einen beliebigen Ton ausgeben kann. Ich glaube aber mit Bordmitteln (von Delphi oder Windows) kommt man an den "normalen" Systemlautsprecher gar nicht so genau ran... (ausgenommen WinNT/2k/XP)

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
G-man
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Di 04.11.03 17:17 
Bei Visual Basic haben sie ja meines Wissens auch die Sound-Funktion
rausgenommen. Wieso ist mir allerdings nicht klar.

_________________
...To err is human, but to really foul things up requires a computer.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 04.11.03 20:04 
frag doch mal den autro dieses proggis:
www.delphi-forum.de/viewtopic.php?t=18236

das steuert nämlcih den PC speaker an !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
UC-Chewie
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 531

WinXP
D5 Ent
BeitragVerfasst: Di 04.11.03 20:34 
Unter Win9x kann auch die Sound-Funktion, die es in TurboPascal gab, verwendet werden. Irgendwann hab ich eine Delphi-Portierung gesehen, entweder hier oder in der DP. Hieß auf jeden Fall genauso und bestand einfach aus ein paar Zeilen ASM mit einem Interruptaufruf.

_________________
Egal wie dumm man selbst ist, es gibt immer andere, die noch dümmer sind
Brueggendiek
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 304

Win 98, Win98SE, Win XP Home
D5 Std
BeitragVerfasst: Di 04.11.03 23:54 
Hallo!

Zur Lösung des Problems empfehle ich eine Reise in die Schweiz - eventuell auch am selben Ort!

Der erste Link nutzt den PC-Lautsprecher (die Quäke, die sich beim Einschalten meldet), der zweite Link nutzt die Soundkarte. Ggf. muß noch ermittelt werden, ob eine Soundkarte vorhanden ist. Kann man sich dann ja entsprechend hinstricken.

Gruß

Dietmar Brüggendiek