Forum rules - please read before posting.

problem with resume audio

When I start the scene some other music is playing

then I link action 1 and hit run
then I link action 2 and hit run
then I link action 3 and hit run but the music doesnt resume

if I do it again it works

then if I change the music in action 1 and I do it again the resume doesnt work
hit 1 , 2 , 3 again and it does.

looks like a bug? what do you think?

image

Comments

  • Please post screenshots of the ActionList sequence that doesn't work - if I have to picture it it's likely I'll get the wrong idea.

    If you're linking 1 -> 2 -> 3 in succession, there's a chance it wouldn't work because the music stopped in 2 hasn't technically ended before 3 is run.  Either set the Fade-out time (s) to 0, or check Wait until transition ends? in Action 2.
  • I don't link the music actions all together - each action is run separately for demo purpose.
    the steps:

    start scene which plays music A

    create action list in the picture

    1) link action 0 with action 1 (the others are not linked) and hit run - music B is starting
    2) link action 0 with action 2  and hit run-> music B stops
    3) link action 0 with aciton 3  and hit run-> music B doesn't resume playing
    4) link action 0 with action 1  and hit run-> music B starts playing again
    5)link aciton 0 with action 2 and hit run -> music B stops
    6) link action 0 with action 3  and hit run-> music B resumes as expected

    so the problem is in step 3
    when new music is played and stoped. it doesn't resume. 
    if played again and stoped it does.

    tested it right now 
    with unity 5.4.4p1 and ac155c

  • Right.  I'll go over the steps and see what happens.
  • Can't recreate - always works fine for me the first time I run it.  The only time the Resume action doesn't work is if the Stop one is called multiple times.  That can be changed by opening Music.cs, and replacing line 301:

    ClearMusicQueue ();

    with:

    if (queuedMusic.Count > 0) ClearMusicQueue ();

    Does that have an effect on your issue as well?
  • for everyone who faces this problem.
    AC is fine and it has something to do with your audio file settings in unity.
    My problem was I had "Load in background" checked.
    image
  • An idea so other ac users don't accidentally use audio clips with Load in Background enabled.
    AudioClips can be checked via script if that is checked.


    Maybe the Music Manager could warn about these audio clips
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.