C# Class FSO.Content.Audio

Manager for the audio content.
Mostra file Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
EP2 FSO.Files.Formats.DBPF.DBPFFile
EP5Samps FSO.Files.Formats.DBPF.DBPFFile
Hitlists FSO.Files.Formats.DBPF.DBPFFile
SFXCache SoundEffect>.Dictionary
Stings DBPFFile
TSOAudio DBPFFile
TracksById Track>.Dictionary
tsov2 DBPFFile

Public Methods

Method Description
Audio ( Content contentManager ) : System
GetHitlist ( uint InstanceID ) : Hitlist

Gets a Hitlist from a DBPF using its InstanceID.

GetSFX ( uint InstanceID ) : SoundEffect

Gets a sound effect from the sound effects cache.

Init ( ) : void

Initializes the audio manager.

List ( ) : List

Compiles the radio stations in the game to a list of AudioReference instances.

Private Methods

Method Description
AddTracksFrom ( DBPFFile dbpf ) : void

Gets a track from a DBPF using its InstanceID.

GetAudioFrom ( uint InstanceID, DBPFFile dbpf ) : byte[]

Gets a audio file from a DBPF using its InstanceID.

GetHitlistFrom ( uint InstanceID, DBPFFile dbpf ) : Hitlist

Gets a Hitlist from a DBPF using its InstanceID.

Method Details

Audio() public method

public Audio ( Content contentManager ) : System
contentManager Content
return System

GetHitlist() public method

Gets a Hitlist from a DBPF using its InstanceID.
public GetHitlist ( uint InstanceID ) : Hitlist
InstanceID uint The InstanceID of the Hitlist.
return FSO.Files.HIT.Hitlist

GetSFX() public method

Gets a sound effect from the sound effects cache.
public GetSFX ( uint InstanceID ) : SoundEffect
InstanceID uint The InstanceID of the sound effect.
return Microsoft.Xna.Framework.Audio.SoundEffect

Init() public method

Initializes the audio manager.
public Init ( ) : void
return void

List() public method

Compiles the radio stations in the game to a list of AudioReference instances.
public List ( ) : List
return List

Property Details

EP2 public_oe property

public DBPFFile,FSO.Files.Formats.DBPF EP2
return FSO.Files.Formats.DBPF.DBPFFile

EP5Samps public_oe property

public DBPFFile,FSO.Files.Formats.DBPF EP5Samps
return FSO.Files.Formats.DBPF.DBPFFile

Hitlists public_oe property

public DBPFFile,FSO.Files.Formats.DBPF Hitlists
return FSO.Files.Formats.DBPF.DBPFFile

SFXCache public_oe property

public Dictionary SFXCache
return SoundEffect>.Dictionary

Stings public_oe property

public DBPFFile Stings
return DBPFFile

TSOAudio public_oe property

public DBPFFile TSOAudio
return DBPFFile

TracksById public_oe property

public Dictionary TracksById
return Track>.Dictionary

tsov2 public_oe property

public DBPFFile tsov2
return DBPFFile