Autor Beitrag
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 14.04.03 15:52 
Ich würde gerne einige kleine Soundeffekte (mehr als bloßes Piepen) in mein Programm einbauen, aber ohne mehrere Dateien, d.h. die MusikInformation soll mit in der exe drinliegen.
Wie stell ich das am besten an? Habe damit überhaupt keine Erfahrung.

_________________
We are, we were and will not be.
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mo 14.04.03 22:23 
Hi,

pack dir die WAVE Dateien in ne Resource Datei, binde die in deinem Projekt mit ein und spiel dann mit PlaySound die WaveDateien direkt aus der Resource ab ;)

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Mi 16.04.03 10:18 
Wie man Resourcen erstellt kannst du hier nachlesen: www.delphi-treff.de/...ne/index.php4?id=459. Ich glaube ich hab auch schon bei www.swissdelphicenter.ch/de einen Artikel gesehen...

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Mi 16.04.03 10:26 
Ich habs gefunden: www.swissdelphicente.../showcode.php?id=118
Du kannst übrigens auch einfach eine Textdatei mit dem Syntax wie bei Swiss...usw. beschrieben erstellen und dann einfach auf die brcc32.exe per Drag&Drop ziehen. Allerdings würde ich die Datei erstmal in ein eigenees Verzeichnis kopieren, da die Ressourcen-File im selben verzeichnis erstellt wird.

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
Gausi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 16.04.03 13:25 
Habs jetzt hinbekommen. Danke.

_________________
We are, we were and will not be.