• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

Class Sound

Inheritance
System.Object
Sound
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Inferno.Audio
Assembly: Inferno.Desktop.dll
Syntax
public class Sound : IDisposable

Properties

| Improve this Doc View Source

Looping

Whether or not the sound is looping

Declaration
public bool Looping { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Pitch

The pitch the sound is playing at

Declaration
public float Pitch { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Volume

The volume the sound is playing at

Declaration
public float Volume { get; set; }
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

Dispose()

Dispose sound

Declaration
public void Dispose()
| Improve this Doc View Source

FromWave(WaveFormat)

Create sound from Wave Format

Declaration
public static Sound FromWave(WaveFormat wave)
Parameters
Type Name Description
WaveFormat wave

Wave data

Returns
Type Description
Sound

Sound from wave data

| Improve this Doc View Source

Pause()

Pause sound

Declaration
public void Pause()
| Improve this Doc View Source

Play()

Play sound

Declaration
public void Play()
| Improve this Doc View Source

SetVolume(Int32)

Declaration
public void SetVolume(int volume)
Parameters
Type Name Description
System.Int32 volume
| Improve this Doc View Source

Stop()

Stop sound

Declaration
public void Stop()

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX