Autor Beitrag
Starfighter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Do 01.05.03 15:14 
Hallo Leute,

Wie kan ich eine mp3 abspielen die ich im ListBox markiert habe?
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Do 01.05.03 16:26 
Hi,

na einfach den Dateinamen an den TMediaPlayer übergeben, öffnen und abspielen ;)

ausblenden Quelltext
1:
2:
3:
MediaPlayer1.FileName:=ListBox1.Items[ListBox1.ItemIndex];
MediaPlayer1.Open;
MediaPlayer1.Play;


Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
Starfighter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Do 01.05.03 16:27 
cool danke.. ich habe nicht damit gerechnet das das so einfach ist!
Starfighter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Do 01.05.03 16:31 
ja, aber jetzt schmiert das prog ab!
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Do 01.05.03 16:36 
Hi,

das liegt dann aber an deinem restlichen Code, nicht an den 3 Zeilen ;)

Erklär doch mal genauer was passiert, und vorallem was für eine Fehlermeldung kommt (Ich wette "Kann Datei so und so nicht finden", ne? :P )

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!