Zum Inhalt wechseln

Foto

Stopping A Sound In Cutscene


  • Bitte melde dich an um zu Antworten
7 Antworten in diesem Thema

#1
Challseus

Challseus
  • Members
  • 1.032 Beiträge
I have this cutscene, and I have a sound that starts in the beginning (by adding the sound object to the cutscene timeline). The problem is, it goes on forever, even when the cutscene is over. How can I stop the sound at either the end of the cutscene, or after the cutscene?

Thanks.

*Hopes someone still comes to this forum*

#2
dr.drummie

dr.drummie
  • Members
  • 51 Beiträge
hi!
what comes on my mind is something like find sound object in area with tag of your sound and stop him with cutscene end script, or trigger..

#include "utility_h"

void main()
{
object oSE = GetObjectByTag("rumble_up"); //Tag of sound object in area
if (IsObjectValid(oSE) {
StopSoundObject(oSE);
}
}

hth..

Bearbeitet von dr.drummie, 29 Oktober 2012 - 07:51 .


#3
Challseus

Challseus
  • Members
  • 1.032 Beiträge
Ah, right. So, the sound object is embedded in the cutscene, not the area itself. So there will be no sound object to stop, so to speak (not in the area, anyway).

#4
dr.drummie

dr.drummie
  • Members
  • 51 Beiträge
you're right, i didn't realize that sound is not an object like creature or placeable..
but i tried to put sound in cutscene and it disappeared soon as cutscene ended.. another workaround maybe to put sound in area near cutscene, trigger it when it starts and turn it off when it ends? of course it would not be perfect for every type of cutscene, but maybe is doable.. ;)

#5
DahliaLynn

DahliaLynn
  • Members
  • 1.387 Beiträge
You may be using one of the ambient loop sounds. Those sounds will loop beyond the cutscene (in this case until you restart the game) until "told" to stop as opposed to being "one shot" sounds. I don't believe these types of sound objects were meant to be used in cutscenes but rather in areas.

Edit: More details in another post
Edit2: An earlier post describing the same issue, with answers from BioWare.

Bearbeitet von DahliaLynn, 30 Oktober 2012 - 10:11 .


#6
Karma

Karma
  • Members
  • 391 Beiträge
I have a cutscene that uses the joining music, but the music lasts longer than my cutscene and so plays even after the cutscene ends. I use the bit of script below in my end cutscene script. It appears to work.

CS_CutsceneEnd();
StopSound("pre100cs_joining_ritual/pre100cs_joining_ritual/pre100cs_joining_ritual");

Bearbeitet von satans_karma, 31 Oktober 2012 - 12:09 .


#7
dr.drummie

dr.drummie
  • Members
  • 51 Beiträge
just as observation, this is from wiki how-tos:
"The way we have been doing the music changes is via placed sound objects. These sound objects are generally created in FMOD, and in FMOD you can say if the music will persist after the cutscene or end when the cutscene ends."

#8
Challseus

Challseus
  • Members
  • 1.032 Beiträge
Thanks for all the links/responses, guys! I'm going to look them over and see what the best solution is.

The cutscene forums lives!