Ich habe da so eine kleine Frage, ich möchte bei SXMS in dem folgenden Script keine LAde Sound funktion sondern eine funktion dass er eine bestimmte datei abspielt.
Das ist ein ausschnittt aus der neuen engine example 1 P press event.
Was muss ich hier ändern damit er also eine bestimmte datei lädt und spielt ohne zu fragen ?
Alles anzeigen
Das ist ein ausschnittt aus der neuen engine example 1 P press event.
Was muss ich hier ändern damit er also eine bestimmte datei lädt und spielt ohne zu fragen ?
Quellcode
- //Play a song, since we are passing "dialog" as argument0, it will
- //automatically bring up an "open filename" dialog
- //The second argument are additional flags for the song
- sxeasy_play("dialog",sxms.FMOD_ACCURATETIME | sxms.FMOD_LOOP_OFF,0);
- //Set the volume to 100%
- sxeasy_setVolume(1);
- /*==The following is just for example drawing purposes*/
- drawLength = sxfmod_sound_getLength(0,sxms.FMOD_TIMEUNIT_MS);
- drawLengthFix = correctTime(drawLength);
- drawFormat = sxfmod_sound_getFormat(0,0);
- constant.visualreset = 1;
- /*==*/
- /*Ignore the items below*/
- /*sxfmod_system_setStreamBufferSize(64*1024,sxms.FMOD_TIMEUNIT_RAWBYTES);*/
- /*http://64.236.34.97:80/stream/1002*/