Autor Beitrag
conqueror
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19

xp

BeitragVerfasst: Mi 03.05.06 11:42 
moin moin

wir haben noch ne kleine frage. unsere spielebox is zwar fertig, doch sie is langweilig:P

nun möchten wir ein lied einbinden, das startet sobald man die spielebox öffnet und sich erst wieder beendet, wenn sie sich schliess.

kann uns da jemand helfen?

grezz conqueror


Moderiert von user profile iconraziel: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mi 03.05.2006 um 14:08
chriss1988
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Mi 03.05.06 11:52 
glaube mal gelesen zuhaben das das so geht

ausblenden Delphi-Quelltext
1:
sndPlaySound(PChar('C:\Datei.wav'),SND_SYNC);					


zusätzlich
SND_SYNC = Während die Datei abgespielt wird, steht die Anwendung
SND_ASYNC = Die Datei wird unabhängig vom Programm abgespielt.
SND_LOOP = Immer wieder und immer wieder


Zuletzt bearbeitet von chriss1988 am Mi 03.05.06 11:54, insgesamt 1-mal bearbeitet
conqueror Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19

xp

BeitragVerfasst: Mi 03.05.06 11:54 
muss es da zwingend eine wav datei sein oder geht auch mp3 oder so?
chriss1988
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Mi 03.05.06 11:55 
mhhhhh musst du mal ausprobieren aber warum nicht
conqueror Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19

xp

BeitragVerfasst: Mi 03.05.06 12:00 
hmm muss da sonst noch was rein oder so? bei uns geht das irgendwie nich:D
chriss1988
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Mi 03.05.06 12:03 
am besten in form creat
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure Tform1.FormCreate(Sender: TObject);

begin 
sndPlaySound(PChar('C:\Datei.wav'),SND_SYNC);
end;


kann dir leider net sagen ob das geht habs selbst noch nie ausprobiert
conqueror Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19

xp

BeitragVerfasst: Mi 03.05.06 13:10 
so haben das gemacht aber jetz kommt die fehler meldung "not enougth parameters" schreibt man glaub so... jemand ne idee?
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mi 03.05.06 13:16 
conqueror Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19

xp

BeitragVerfasst: Mi 03.05.06 13:38 
hmm jo hab das gelesen ehm bei uns kommt da nur so ein "beep"... oder pling was auch immer... kann es sein, das es wirklich ne wavedatei sein muss? wenn ja woe bekomm ich von ner "wma" datei ne "wav" datei?
conqueror Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19

xp

BeitragVerfasst: Mi 03.05.06 14:02 
so es funktioniert aber achtung ehm wie können wir das machen, das es startet sobald man das programm öffnet???
chriss1988
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Mi 03.05.06 14:41 
den ganzen schmonses in form creat setzen