OpenAL sound implementation.

This commit is contained in:
2023-06-17 00:56:17 +02:00
parent 7d5c5f822b
commit 36eae40926
9 changed files with 211 additions and 30 deletions

View File

@@ -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
}
}