Audiokinetic Wwise Knowledge Base

Add Silence Probability to Random Container

Scenario

Let's say you have a random container with three sounds (“Hit1”, “Hit2” and “Hit3”), but in some cases, you want nothing to be played instead of one of the sounds. In this case, you can create a "silence source" within your container and use the Weight property to determine the probability the silence will be played in relation to the other sounds.

Solution

Here’s how you can add a Silence source to a random container in Wwise:

  1. Create a random container and insert the “Hit1”, “Hit2” and “Hit3” sound objects.
  2. Add a new child Sound SFX to the Random container by doing the following:
    • Right-click on the container in the Project Explorer, and select New Child > Sound SFX. A new sound object is added to the Project explorer.
    • Name the new sound object Silence. Note that the name is displayed in red because there is no source associated with the sound object.
  3. In the Project Explorer, double-click the “Silence” sound object.
  4. In the Contents Editor, click the Add Source >> button in the top-right corner of the view.
  5. From the source menu, select Silence. Note that the name of the sound object in the Project Explorer changes to white because it is now associated with a source.
  6. Double-click the random container to display its contents in the Contents Editor.
  7. Set the Weight for each of the sounds to define the probability that each sound or silence will be played.



Article Details

Last Updated
4th o March, 2008

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (2 votes)

100% thumbs up 0% thumbs down

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Continue