Autor Beitrag
Melcho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Mi 23.03.05 10:41 
Eh jungs wieso geht das nicht und welche formate unterstützt das Eisen

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
if Label3.Caption=Label2.Caption then
        begin
                sndPlaySound(PChar(Form2.Edit1.Text),SND_ASYNC);
                sndPlaySound(nil,0);
        end;


Moderiert von user profile iconGausi: Code- durch Delphi-Tags ersetzt.

_________________
PCP saved my life
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Do 24.03.05 08:03 
Dannn wollte ich noch mal wissen ob es noch eine Andere Möglichkeit für eine MP3 Abspieleung gibt und wie das dann geht .
Bitte helft mir ist wichtig :flehan:

_________________
PCP saved my life
Cube85
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 50



BeitragVerfasst: Do 24.03.05 08:36 
www.dsdt.info/tipps/?id=578

Ka ob das für mp3 funzt aber kannst ja mal testen.
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Do 24.03.05 08:54 
Jo Danke Andy er sagt aber immer Kein Gerät mit einer gültigen Datenenerweiterung gefunden und dann springt er nach:

MediaPlayer1.Display:=panel1;

_________________
PCP saved my life
Cube85
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 50



BeitragVerfasst: Do 24.03.05 09:13 
Ja ka denke nicht das du Display brauchst um ne mp3 abzuspielen O_o

Hab auch noch nich mit TMediaplayer gearbeitet, aber denke das ist die richtige Komponente dafür.
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 24.03.05 10:06 
Ich denke, dass das Problem mit dem "Gerät" darin liegt, dass du zuerst den Player öffnest und dann den Filenamen setzt. Du musst das so machen:
ausblenden Delphi-Quelltext
1:
2:
3:
mediaplayer1.filename:='meinmp3.mp3';
mediaplayer1.open;
mediaplayer1.play;
dann sollte es klappen.

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

XP

BeitragVerfasst: Do 24.03.05 10:13 
Danke aber immer noch genau das gleiche Problem aber ich mach das so
mediaplayer1.filename:=Neuer_Termin.Edit1.Text;
Hast noch ein Plan ?

_________________
PCP saved my life
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 24.03.05 10:33 
uuups....jetzt ist mir doch glatt meine Glaskugel runtergefallen. N bissel mehr Quelltext wäre nett. Was ist denn z.B. Neuer_Termin? Eine Form? Ist DeviceType auf Autoselect?

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

XP

BeitragVerfasst: Do 24.03.05 10:53 
Wieso mehr Quelltext ?
Ja ist ne Form und der Player ist auf AutoSelected.

_________________
PCP saved my life
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Do 24.03.05 11:00 
JJJJJJJJJJJOOOOOOOOOOOO

ES GGGGGGGEEEEHHHHHHHTTTTTTTTTTT
Aber wieso ist der MediaPlayer immer Enabled ????
Danke euch !!!!

Moderiert von user profile iconGausi: Ein paar doppelte Buchstaben gelöscht. SO wird die unbändige Freude auch noch deutlich...:roll:

_________________
PCP saved my life