OpenAL sound implementation.
This commit is contained in:
@@ -2,11 +2,18 @@ namespace DaggerFramework
|
||||
{
|
||||
public class Sound : Resource
|
||||
{
|
||||
public float PitchScale { get; set; } = 1.0f;
|
||||
public float Volume { get; set; } = 1.0f;
|
||||
public SoundFormat Format { get; set; }
|
||||
public int SampleRate { get; set; }
|
||||
public int BufferSize { get; set; }
|
||||
|
||||
public Sound(string path, byte[] buffer) : base(path, buffer)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public enum SoundFormat
|
||||
{
|
||||
Mono,
|
||||
Stereo
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user