Autor Beitrag
ploRa
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59

Win XP
Delphi 6
BeitragVerfasst: Do 09.06.05 11:44 
Hiho,
ich programmiere ein Memory-Spiel !
Und im Hintergrund soll Musik laufen über den TMediaPlayer.
Wie kann ich eine .mp3 in das Spiel integrieren, sodass es egal ist wo man das Spiel auf der Festplatte speichert und er das Lied immer findet ?

Mfg
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Do 09.06.05 11:48 
du kannst das lied als resource in deine exe einbinden
siehe hierzu Suche in: Delphi-Forum, Delphi-Library WAVE RESOURCE
und mein tmediaplayer tutorial www.delphi-forum.de/...r+Dummies_41780.html

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 09.06.05 13:53 
Oder du verwendest die Technik, die hier für das Laden von Bildern vorgeschlagen wurde.

_________________
We are, we were and will not be.