Graphics

 View Only
  • 1.  Sound Effect Take Offline

    Posted 12-28-2015 20:21
    Hello,

    Is there a way to make a sound effect stop playing when we play out a different fullscreen on a layer above?
    Right now we have what we call a slate with sound on layer 0 and we normally advance to a fullscreen (layer 1) but if we do, we would still hear the sound effect unless we manually take it offline.
    Is there a way I can do this via scripting?

    Thank you!
    Mildred


  • 2.  RE: Sound Effect Take Offline

    Posted 12-29-2015 16:25
    Not sure if I explained myself before.
    I guess the simplified question would be, how can i clear layer 0 once layer 1 is played out? Is it possible?
    I've been successful in clearing it as i play out layer 1 but was wondering if I can delay it somehow...
    would really appreciate the help.

    thank you!


    #XPression


  • 3.  RE: Sound Effect Take Offline

    Posted 12-29-2015 19:45
    Can you place a script event at the end of the Scene Director that is playing the scene offline. The script event could clear layer 0 by using a script like this:

    dim fb as integer
    dim layer as integer

    ' Get the framebuffer and layer this scene is on.
    if scene.GetOnline(fb, layer) then
    ' Clear the scene on Layer 0 on the same framebuffer
    engine.ClearFramebufferLayer(fb, 0)
    end if

    #XPression


  • 4.  RE: Sound Effect Take Offline

    Posted 12-29-2015 20:34
    Nothing is happening right now, nothing is clearing.
    It does bring up a message that says that the scene is not declared.

    i did:

    dim scene as xpScene

    not sure at all if that's correct, but still nothing happening.

    #XPression


  • 5.  RE: Sound Effect Take Offline

    Posted 12-29-2015 21:33
    It sounds like you didnt' put this script in a scene director event but rather put the script somewhere else (e.g. OnOnline etc..).. The script I provided will only work on the scene director.

    #XPression


  • 6.  RE: Sound Effect Take Offline

    Posted 12-30-2015 16:58
    Hi Brian,

    Thanks for the help. Putting the script in a scene director event did work but still not what I am looking for.
    I am trying to do it through transition logic now.
    My problem is that I have this graphic playing out has a clock and sound effect and we want to be able to cover it up with another graphic (layer 1) at any time. That's when I need something that either stops the sound effect (layer 0) or takes the scene offline that's on layer 0.

    I am starting to think that it might not be possible.

    #XPression


  • 7.  RE: Sound Effect Take Offline

    Posted 12-30-2015 20:34
    If you can post an example of the scene's/project it might be easier to help you out; it sounds possible to do. I'm still not clear on why the script I provided doesn't do what you are looking for..
    #XPression