Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 7,096 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
media_play problem -.- #202457
04/15/08 03:37
04/15/08 03:37
Joined: Aug 2004
Posts: 122
A small town near Cologne
E
Elitegunner Offline OP
Member
Elitegunner  Offline OP
Member
E

Joined: Aug 2004
Posts: 122
A small town near Cologne
Ich versuche eine mp3 abzuspielen mit diesem code aber habe ein problem

 Code:
var x;
function music1
{	
  media_play("meinsong.mp3", null, 100);
 	x = media_handle;	
}	


nach der mainfunktion versuch ich den song zu starten:

 Code:
media_play(music1,100);


Wenn ich die engine starte bekomm ich allerdings diese Fehlermeldung:
"Crash in main: media_play(music1,100)"

wo ist jetzt das problem?
Hatte vor paar jahren auch kein Problem mit Mp3s in 3DGS gehabt.

Habe A6 Commercial v6.60


edit: ach da muss man erstmal draufkommen....
mit
music1();
in der main funktion funzt es.
und ne variable brauch ich auch net ^^

und wie geht das jetzt mit media_stop?
muss ich da wieder ne neue funktion schreiben?

ok media_stop geht scheinbar nur über ne variable...

Last edited by Elitegunner; 04/15/08 04:05.
Re: media_play problem -.- [Re: Elitegunner] #202566
04/15/08 18:54
04/15/08 18:54
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Du brauchst für nichts von dem eine extra funktion. Schreibe einfach in die main:
 Code:
var x;
x = media_play("meinsong.mp3", null, 100);
wait(-5);
media_stop(x);



Always learn from history, to be sure you make the same mistakes again...

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1