aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Audio/Backends/Common
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Audio/Backends/Common')
-rw-r--r--src/Ryujinx.Audio/Backends/Common/BackendHelper.cs2
-rw-r--r--src/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs2
-rw-r--r--src/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs7
3 files changed, 4 insertions, 7 deletions
diff --git a/src/Ryujinx.Audio/Backends/Common/BackendHelper.cs b/src/Ryujinx.Audio/Backends/Common/BackendHelper.cs
index 30db340f..124d8364 100644
--- a/src/Ryujinx.Audio/Backends/Common/BackendHelper.cs
+++ b/src/Ryujinx.Audio/Backends/Common/BackendHelper.cs
@@ -23,4 +23,4 @@ namespace Ryujinx.Audio.Backends.Common
return bufferSize / GetSampleSize(format) / channelCount;
}
}
-} \ No newline at end of file
+}
diff --git a/src/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs b/src/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs
index d17303cd..05dd2162 100644
--- a/src/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs
+++ b/src/Ryujinx.Audio/Backends/Common/DynamicRingBuffer.cs
@@ -163,4 +163,4 @@ namespace Ryujinx.Audio.Backends.Common
}
}
}
-} \ No newline at end of file
+}
diff --git a/src/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs b/src/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs
index 6fb3bee0..5599c082 100644
--- a/src/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs
+++ b/src/Ryujinx.Audio/Backends/Common/HardwareDeviceSessionOutputBase.cs
@@ -66,14 +66,11 @@ namespace Ryujinx.Audio.Backends.Common
return false;
}
- if (buffer.Data == null)
- {
- buffer.Data = samples;
- }
+ buffer.Data ??= samples;
return true;
}
public virtual void UnregisterBuffer(AudioBuffer buffer) { }
}
-} \ No newline at end of file
+}