AudioCategory¶
-
struct
AudioCategory
: System.ValueType, System.IEquatable<AudioCategory> Provides functionality for manipulating multiple sounds at a time.
-
readonly string
Name
Gets the category’s friendly name.
-
void
AddSound
(Microsoft.Xna.Framework.Audio.XactSound sound) Parameters: - sound (Microsoft.Xna.Framework.Audio.XactSound) –
-
int
GetPlayingInstanceCount
()
-
Microsoft.Xna.Framework.Audio.XactSound
GetOldestInstance
()
-
void
Pause
() Pauses all associated sounds.
-
void
Resume
() Resumes all associated paused sounds.
-
void
Stop
(AudioStopOptions options) Stops all associated sounds.
Parameters: - options (Microsoft.Xna.Framework.Audio.AudioStopOptions) –
-
void
SetVolume
(float volume) Parameters: - volume (float) –
-
bool
op_Equality
(AudioCategory first, AudioCategory second) Determines whether two AudioCategory instances are equal.
Parameters: - first (Microsoft.Xna.Framework.Audio.AudioCategory) – First AudioCategory instance to compare.
- second (Microsoft.Xna.Framework.Audio.AudioCategory) – Second AudioCategory instance to compare.
Returns: true if the objects are equal or false if they aren’t.
-
bool
op_Inequality
(AudioCategory first, AudioCategory second) Determines whether two AudioCategory instances are not equal.
Parameters: - first (Microsoft.Xna.Framework.Audio.AudioCategory) – First AudioCategory instance to compare.
- second (Microsoft.Xna.Framework.Audio.AudioCategory) – Second AudioCategory instance to compare.
Returns: true if the objects are not equal or false if they are.
-
bool
Equals
(AudioCategory other) Determines whether two AudioCategory instances are equal.
Parameters: - other (Microsoft.Xna.Framework.Audio.AudioCategory) – AudioCategory to compare with this instance.
Returns: true if the objects are equal or false if they aren’t
-
bool
Equals
(System.Object obj) Determines whether two AudioCategory instances are equal.
Parameters: - obj (System.Object) – Object to compare with this instance.
Returns: true if the objects are equal or false if they aren’t.
-
int
GetHashCode
() Gets the hash code for this instance.
Returns: Hash code for this object.
-
string
ToString
() Returns the name of this AudioCategory
Returns: Friendly name of the AudioCategory
-
readonly string