Audio stops when a couple of seconds pass

Started by dcalap, Sun 20/10/2019 11:54:15

Previous topic - Next topic

dcalap

Hi,

I'm pretty new with AGS (using 3.4.3.1 version) but I haven't seen any solution in forum and in the Help of AGS.

I've imported a midi song in Music section and it's correctly imported because I can press play and it starts the song and sounds complete without problems. The lenght is correct etc.:

I have this script in a room:

Code: ags

function room_FirstLoad() {
    
    Wait(5);
    cChar1.FaceDirection(eDirectionUp);
    Wait(5);
    aPianoMan.Play();
}


When the player enters the room the music starts but after a couple of seconds stops.

Any idea why this can happen?

Slasher

How long is the piece?

And where did you place it... Music / Sound folder?

dcalap

#2
Is 5:33 and I've place it in Music folder. I've used other musics and same happens, just a couple of seconds and stops.

dcalap

I think I got it, I was using a template that was using music,  I think something is wrong with this stuff, I'll investigate deeply why is happening but the fix is just to execute:

Code: ags

StopMusic();

before starting my song and works properly.

Thanks! :)

Slasher


SMF spam blocked by CleanTalk