Sign in Join
Wiki copytemporary

Is a sound card available/de: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Is a sound card available/de

OldNewLine
1+Zurück zur Seite [[code examples/de|Code Beispiele]].
2+
3+Dieser Artikel beschäftigt sich mit der Windowsprogrammierung.
4+
5+Die Funktion prüft, ob sich eine Soundkarte im Rechner befindet.
6+
7+``` pascal
8+uses
9+ ...;
10+
11+// Aufruf der Windowsfunktion IsSoundkarte aus der Windows-DLL winmm.dll
12+function IsSoundKarte: longint; stdcall; external 'winmm.dll'
13+ Name 'waveOutGetNumDevs';
14+
15+// Funktion um den Aufruf der Windows-Dll zu demonstrieren
16+function funTest: string;
17+begin
18+
19+ if IsSoundKarte = 0 then
20+ Result := 'Keine Soundkarte vorhanden'
21+ else
22+ Result := 'Soundkarte vorhanden';
23+end;
24+```
25+
26+---
27+*From the Free Pascal wiki, page "Is a sound card available/de", as it stood on 2020-02-18 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history