aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Audio/AudioIn/AudioIn.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Audio/AudioIn/AudioIn.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Audio/AudioIn/AudioIn.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Audio/AudioIn/AudioIn.cs b/src/Ryujinx.HLE/HOS/Services/Audio/AudioIn/AudioIn.cs
index ee85ded9..ee8e4643 100644
--- a/src/Ryujinx.HLE/HOS/Services/Audio/AudioIn/AudioIn.cs
+++ b/src/Ryujinx.HLE/HOS/Services/Audio/AudioIn/AudioIn.cs
@@ -10,9 +10,9 @@ namespace Ryujinx.HLE.HOS.Services.Audio.AudioIn
{
class AudioIn : IAudioIn
{
- private AudioInputSystem _system;
- private uint _processHandle;
- private KernelContext _kernelContext;
+ private readonly AudioInputSystem _system;
+ private readonly uint _processHandle;
+ private readonly KernelContext _kernelContext;
public AudioIn(AudioInputSystem system, KernelContext kernelContext, uint processHandle)
{
@@ -80,9 +80,9 @@ namespace Ryujinx.HLE.HOS.Services.Audio.AudioIn
{
IWritableEvent outEvent = _system.RegisterBufferEvent();
- if (outEvent is AudioKernelEvent)
+ if (outEvent is AudioKernelEvent kernelEvent)
{
- return ((AudioKernelEvent)outEvent).Event;
+ return kernelEvent.Event;
}
else
{
@@ -105,4 +105,4 @@ namespace Ryujinx.HLE.HOS.Services.Audio.AudioIn
return (ResultCode)_system.Stop();
}
}
-} \ No newline at end of file
+}