aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio.Backends.SoundIo/SoundIoAudioBuffer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Audio.Backends.SoundIo/SoundIoAudioBuffer.cs')
-rw-r--r--Ryujinx.Audio.Backends.SoundIo/SoundIoAudioBuffer.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/Ryujinx.Audio.Backends.SoundIo/SoundIoAudioBuffer.cs b/Ryujinx.Audio.Backends.SoundIo/SoundIoAudioBuffer.cs
index b43143d6..7f32b953 100644
--- a/Ryujinx.Audio.Backends.SoundIo/SoundIoAudioBuffer.cs
+++ b/Ryujinx.Audio.Backends.SoundIo/SoundIoAudioBuffer.cs
@@ -2,8 +2,15 @@
{
class SoundIoAudioBuffer
{
- public ulong DriverIdentifier;
- public ulong SampleCount;
+ public readonly ulong DriverIdentifier;
+ public readonly ulong SampleCount;
public ulong SamplePlayed;
+
+ public SoundIoAudioBuffer(ulong driverIdentifier, ulong sampleCount)
+ {
+ DriverIdentifier = driverIdentifier;
+ SampleCount = sampleCount;
+ SamplePlayed = 0;
+ }
}
}