Autor Beitrag
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 11.05.05 19:07 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
if Opendialog1.Execute then
  begin
  Mediaplayer1.FileName := Opendialog1.FileName;
  Mediaplayer1.Open;
  Mediaplayer1.Play;
  end;

Einfach auf Buootn-klick legebn.
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Mi 11.05.05 19:10 
Probiers erstmal einfach nur mit der MediaKompo
Wähle im OE
AutoOpen : true
FileName : Irgendeine wav oder mp3 Datei

und klicke auf das Play-Zeichen

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 11.05.05 19:13 
Der oben genannte Code funzt. ER braucht nur nen Button die Mediakompo und nen Opendialog. Wie wärs wenn du ihn ersmal das ausprobieren läst??
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: Mi 11.05.05 19:21 
user profile iconFabian W. hat folgendes geschrieben:
Winamp ist doch der Player der Aus 3 einzelfenstern besteht die immer aneinander andocken. Der lädt doch acuh n Icon 'an die Uhr'? Kann ich eigentlich nicht empfehlen, wenn's der is, den ich mein.

winamp ist der bekannteste mp3-player... wenn man ihn nur zum mp3->wav konvertieren her nimmt, ist er gut genug. ein jammer, dass er keine mod's abspielen kann...

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Mi 11.05.05 19:22 
ich will nur das ein lied wenn ich auf nen knopf drücke im hintergrund abgespielt wird
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: Mi 11.05.05 19:23 
user profile iconFabian W. hat folgendes geschrieben:
Der oben genannte Code funzt. ER braucht nur nen Button die Mediakompo und nen Opendialog. Wie wärs wenn du ihn ersmal das ausprobieren läst??

wie wärs wenn du ihm einen code ohne opendialog postet ?
für den ists ja schon schwer die mediaplayer kompo alleine einzubinden, soll er sich dann auch noch mit nem opendialog rumschlagen müssen ?

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 11.05.05 19:23 
Dann mach das ganze so wie das Tobi gesagt hat.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 11.05.05 19:24 
Zitat:
wie wärs wenn du ihm einen code ohne opendialog postet ?
für den ists ja schon schwer die mediaplayer kompo alleine einzubinden, soll er sich dann auch noch mit nem opendialog rumschlagen müssen ?

ich hab's ihm doch vorgekaut. er braucht blos die drei Kompos einfügen.
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: Mi 11.05.05 20:08 
ich habe ein TMediaplayer Tutorial für Dummies erstellt, hier ist der link:
www.krazz.net/retnyg/tut/mptut1.htm

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Mi 11.05.05 20:36 
cool ich probiers nacher aus ^^
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Mi 11.05.05 20:44 
wenn ich auf den playbuttondrücke schließt des progeinfach
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: Mi 11.05.05 20:45 
hast du auch den richtigen pfad zu einem mp3-file angegeben ?

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Mi 11.05.05 20:51 
ja hab ich
Tobias1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 454

Win 98, XP Prof
D3 Prof, D2005 Prof
BeitragVerfasst: Mi 11.05.05 20:55 
probiers mal mit ner wav File obs da auch abstürzt

_________________
Auch das schlechteste Buch hat seine gute Seite: die letzte. (John Osborne)
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: Mi 11.05.05 20:57 
dann poste mal deinen kompletten quellcode, von Unit unit1 bis end.

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
Blackheart
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

ME
D3Prof.-D6Standard
BeitragVerfasst: Mi 11.05.05 21:25 
Sag doch einfach mal was Du vor hast, einen Sound abspielen (Wie zum Anfang gefragt) oder einen MP3 Player programmieren ?
Wie Du Sound abspielen kannst wurde beantwortet - Für den MP3 Player hattest du einen Link mit Source Code !
Woran liegt es nun genau !!!
T1g3r Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: Do 12.05.05 17:02 
geht jetzt er schließt des prog wenn ich bei delphi auf play gehe ichmuss des prog nochmal extra öffnen dann gehts
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Fr 13.05.05 14:57 
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: Fr 13.05.05 14:58 
user profile iconF34r0fTh3D4rk hat folgendes geschrieben:
www.findsounds.com

was willst du uns damit sagen ?

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

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Fr 13.05.05 15:02 
user profile iconT1g3r hat folgendes geschrieben:
kk ich hab die deutsch delphi-Hilfe nicht!!!
kennt jemand ne seite wo ich lieder als wav datei runterladen kann oder wo ich nen prog bekommen des mp3's in wav umwandelt???


die antwort