Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,253 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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