Soundtrack

12 - Song Interruption

What steps will reproduce the problem?
1. Play a Song, Any song

What is the expected output? What do you see instead?
The song stops 2-4 seconds before completion, This is caused by a play of the "Empty Track" during this time.

What version of the product are you using?
1.20

Do you have an error log of what happened?
I have a screenshot.
http://img247.imageshack.us/img247/4277/soundtrackki5.jpg
Notice the timestamps between MK's Victory and Empty Track [EG: 12:34:14 and 12:34:17] and then notice the actual Length time of the same song.

Please provide any additional information below.
For some reason, The Empty Track is played near the end of a song.

User When Change
Lunaqua Jun 03, 2010 at 23:22 UTC Changed status from New to Fixed

You must login to post a comment. Don't have an account? Register to get one!

  • 4 comments
  • Avatar of Lunaqua Lunaqua Jun 03, 2010 at 23:22 UTC - 0 likes

    I've changed the behavior so that it should cut out one second before the end of the song.

  • Avatar of squaretex squaretex Jan 06, 2010 at 09:15 UTC - 0 likes

    After a long absence from Soundtrack, I just now returned to it. And I must say I'm quite pleased to see that you're keeping it alive. :)

    I can confirm Valon's concern about the two seconds missing from the end of a looping track. Option-wise, I have Soundtrack set to loop my music completely, with no time gaps between.

    While no lua expert, I investigated the code, and evidence seemed to point to the following line as the culprit (I think it's line #270 in SoundtrackEvents.lua):

    Soundtrack.Timers.AddTimer("FadeOut", length - fadeOutTime, startEmptyTrack)

    I don't think it quite clicked WHY, however, until I read the other ticket asking about custom fade times. You noted that the fade option was no longer accessible by code.

    So I think that's what's going on...Soundtrack was originally written expecting to fade out a track as it reaches its end, and sets a timer accordingly. However, with no actual FadeOut event to trigger anymore, the best it can do is claim that fade time from somewhere else...in this case, the song's actual running time. Thus the abrupt stop.

    As a test,I commented out the above line I quoted, and it began behaving as I expected it to. I'm not sure if that's the "HEALTHY" fix to the problem, but as a quick bandage it works just fine. :)

  • Avatar of Lunaqua Lunaqua Dec 28, 2009 at 07:16 UTC - 0 likes

    What is your setting for Maximum Silence under Loop Music?

  • Avatar of ValonSergki ValonSergki Jul 09, 2008 at 19:52 UTC - 0 likes

    Updated description

    Updated description

  • 4 comments

Facts

Last updated
Jun 03, 2010
Reported
Jul 09, 2008
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees