Class AudioDevice
Adds built-in audio playback to an AudioSystem using SDL.
public class AudioDevice : AudioSystem, IDisposable
- Inheritance
-
AudioDevice
- Implements
- Inherited Members
Constructors
AudioDevice(uint, ushort, ushort)
Create a new AudioDevice with the given sample rate and voices.
public AudioDevice(uint sampleRate, ushort voices, ushort periodSize = 512)
Parameters
sampleRate
uintThe sample rate. Typical values include 44100 (CD quality) and 48000 (DAT quality).
voices
ushortThe number of channels. (Sounds that can be played at once).
periodSize
ushort- Adds built-in audio playback to an using SDL.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public override void Dispose()