Defines any sound instance, used with events.   
 | 
| bool  | IsValid [get] | 
|   | Gets a value indicating whether this instance is valid.   More...
  | 
|   | 
◆ GetSoundId()
      
        
          | int TaleWorlds.Engine.SoundEvent.GetSoundId  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ CreateEventFromString()
  
  
      
        
          | static SoundEvent TaleWorlds.Engine.SoundEvent.CreateEventFromString  | 
          ( | 
          string  | 
          eventId,  | 
         
        
           | 
           | 
          Scene  | 
          scene  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
- Parameters
 - 
  
    | groupId | The group _soundId. | 
    | eventId | The event _soundId. | 
  
   
- Returns
 - MBSound instance containing the sound data
 
 
 
◆ SetEventMinMaxDistance()
      
        
          | void TaleWorlds.Engine.SoundEvent.SetEventMinMaxDistance  | 
          ( | 
          Vec3  | 
          newRadius | ) | 
           | 
        
      
 
 
◆ GetEventIdFromString()
  
  
      
        
          | static int TaleWorlds.Engine.SoundEvent.GetEventIdFromString  | 
          ( | 
          string  | 
          name | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ PlaySound2D() [1/2]
  
  
      
        
          | static bool TaleWorlds.Engine.SoundEvent.PlaySound2D  | 
          ( | 
          int  | 
          soundCodeId | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ PlaySound2D() [2/2]
  
  
      
        
          | static bool TaleWorlds.Engine.SoundEvent.PlaySound2D  | 
          ( | 
          string  | 
          soundName | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ GetTotalEventCount()
  
  
      
        
          | static int TaleWorlds.Engine.SoundEvent.GetTotalEventCount  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
- Returns
 - returns the amount
 
 
 
◆ CreateEvent()
  
  
      
        
          | static SoundEvent TaleWorlds.Engine.SoundEvent.CreateEvent  | 
          ( | 
          int  | 
          soundCodeId,  | 
         
        
           | 
           | 
          Scene  | 
          scene  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
- Parameters
 - 
  
    | soundCodeId | ID of the sound | 
  
   
- Returns
 - MBSound instance containing the sound data
 
 
 
◆ IsNullSoundEvent()
      
        
          | bool TaleWorlds.Engine.SoundEvent.IsNullSoundEvent  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ Play()
      
        
          | bool TaleWorlds.Engine.SoundEvent.Play  | 
          ( | 
           | ) | 
           | 
        
      
 
- Returns
 - True if played successfully, otherwise, false.
 
 
 
◆ Pause()
      
        
          | void TaleWorlds.Engine.SoundEvent.Pause  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ Resume()
      
        
          | void TaleWorlds.Engine.SoundEvent.Resume  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ PlayExtraEvent()
      
        
          | void TaleWorlds.Engine.SoundEvent.PlayExtraEvent  | 
          ( | 
          string  | 
          eventName | ) | 
           | 
        
      
 
 
◆ SetSwitch()
      
        
          | void TaleWorlds.Engine.SoundEvent.SetSwitch  | 
          ( | 
          string  | 
          switchGroupName,  | 
        
        
           | 
           | 
          string  | 
          newSwitchStateName  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ TriggerCue()
      
        
          | void TaleWorlds.Engine.SoundEvent.TriggerCue  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ PlayInPosition()
      
        
          | bool TaleWorlds.Engine.SoundEvent.PlayInPosition  | 
          ( | 
          Vec3  | 
          position | ) | 
           | 
        
      
 
- Parameters
 - 
  
    | position | Sets the events position to this parameter permanently | 
  
   
- Returns
 - True if played successfully, otherwise, false.
 
 
 
◆ Stop()
      
        
          | void TaleWorlds.Engine.SoundEvent.Stop  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ SetParameter() [1/2]
      
        
          | void TaleWorlds.Engine.SoundEvent.SetParameter  | 
          ( | 
          string  | 
          parameterName,  | 
        
        
           | 
           | 
          float  | 
          value  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
    | parameterName | Name of the parameter. | 
    | value | Value of the parameter. | 
  
   
 
 
◆ SetParameter() [2/2]
      
        
          | void TaleWorlds.Engine.SoundEvent.SetParameter  | 
          ( | 
          int  | 
          parameterIndex,  | 
        
        
           | 
           | 
          float  | 
          value  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ GetEventMinMaxDistance()
      
        
          | Vec3 TaleWorlds.Engine.SoundEvent.GetEventMinMaxDistance  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ SetPosition()
      
        
          | void TaleWorlds.Engine.SoundEvent.SetPosition  | 
          ( | 
          Vec3  | 
          vec | ) | 
           | 
        
      
 
 
◆ SetVelocity()
      
        
          | void TaleWorlds.Engine.SoundEvent.SetVelocity  | 
          ( | 
          Vec3  | 
          vec | ) | 
           | 
        
      
 
 
◆ Release()
      
        
          | void TaleWorlds.Engine.SoundEvent.Release  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ IsPlaying()
      
        
          | bool TaleWorlds.Engine.SoundEvent.IsPlaying  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ IsPaused()
      
        
          | bool TaleWorlds.Engine.SoundEvent.IsPaused  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ CreateEventFromSoundBuffer()
  
  
      
        
          | static SoundEvent TaleWorlds.Engine.SoundEvent.CreateEventFromSoundBuffer  | 
          ( | 
          string  | 
          eventId,  | 
         
        
           | 
           | 
          byte[]  | 
          soundData,  | 
         
        
           | 
           | 
          Scene  | 
          scene  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ CreateEventFromExternalFile()
  
  
      
        
          | static SoundEvent TaleWorlds.Engine.SoundEvent.CreateEventFromExternalFile  | 
          ( | 
          string  | 
          programmerEventName,  | 
         
        
           | 
           | 
          string  | 
          soundFilePath,  | 
         
        
           | 
           | 
          Scene  | 
          scene  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ IsValid
  
  
      
        
          | bool TaleWorlds.Engine.SoundEvent.IsValid | 
         
       
   | 
  
get   | 
  
 
true if this instance is valid; otherwise, false.