Autor Beitrag
mikeyboy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

WIN XP
D6 Pers
BeitragVerfasst: Di 04.01.05 14:41 
Hi

wie mache ich das wenn ich in einem Programm bei Buttonclick eine Musikdatei abspielen will?? ist das sehr aufwendig??

lg mike


Moderiert von user profile iconChristian S.: Topic aus VCL (Visual Component Library) verschoben am Di 04.01.2005 um 15:30
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 04.01.05 15:50 
Moin!

Dein Freund, die Suche: Suche in: Delphi-Forum, Delphi-Library WAV ABSPIELEN :wink:

cu
Narses
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Mi 05.01.05 12:11 
Probiers mit dem Media-Player!
ausblenden Delphi-Quelltext
1:
2:
3:
4:
MediaPlayer1.filename:='';
Mediaplayer1.open;
Mediaplayer1.play;
Mediaplayer1.close;

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
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: Mi 05.01.05 12:26 
Oder, wenn man es nicht selbst, sondern von Winamp abspielen lassen möchte, geht es mit
ausblenden Delphi-Quelltext
1:
2:
3:
4:
//Bei Winamp einreihen
ShellExecute(Handle, 'Enqueue', PChar(datei_pfad), nil, nil, SW_SHOWNORMAl);
//oder mit Winamp abspielen (neue Playlist)
ShellExecute(Handle, 'Play', PChar(datei_pfad), nil, nil, SW_SHOWNORMAl)
Dazu muss allerdings Winamp vernünftig installiert sein, damit die Aktionen "Play" und "Enqueue" dem System bekannt sind.

_________________
We are, we were and will not be.
mikeyboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

WIN XP
D6 Pers
BeitragVerfasst: Mi 05.01.05 16:14 
Ich danke euch
mikeyboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

WIN XP
D6 Pers
BeitragVerfasst: Do 06.01.05 14:43 
Ich habe das mit MediaPlayer1 versucht dann kommt undefinierter Bezeichner MediaPlayer! Ich nehm mal an ich habe zu wenig gemacht aber ich habe einfach den Quelltext übernommen und filename ausgefüllt!! :oops: Ich bin leider noch anfänger und weiß net besser!!

WinAmp hab ich nicht darum fällt das flach
Radioactive
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179

Win 98, Win XP Home SP2
D3 Prof, D7 Pers, D2005 Pers
BeitragVerfasst: Do 06.01.05 14:47 
Füge auf deinem Formular eine TMediaplayer-Komponente ein (die gibt's unter dem Reiter "System"). Dann wird automatisch ein Objekt Mediaplayer1 erzeugt, mit dem du dann arbeiten kannst.
mikeyboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

WIN XP
D6 Pers
BeitragVerfasst: Do 06.01.05 14:54 
Danke schön :D :) :wink: