AudioCategory.SetVolume Method
Sets the volume of all sounds associated with this category.
Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public void SetVolume (
float volume
)
Parameters
- volume
Volume value, between 0 and 1, where 0 is minimum volume (muted), and 1 is maximum volume.
See Also
Tasks
How to: Play a Sound
How to: Stop or Pause a Sound
How to: Change Sound Volume Levels
Reference
AudioCategory Structure
AudioCategory Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista