aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreggameplayer <33609333+greggameplayer@users.noreply.github.com>2018-06-15 17:54:18 +0200
committerGitHub <noreply@github.com>2018-06-15 17:54:18 +0200
commit5a3449f5d933a4d8f9c214ca910e830b563fae8d (patch)
treeed351541513e1e1ac1f1aaeb5a162990cd7f450c
parente40db09bed7fa670c66c15fef1e7a29a82234afc (diff)
delete mixed tabs & spaces & use void for methods
-rw-r--r--Ryujinx.HLE/OsHle/Services/Aud/IAudioOutManager.cs17
1 files changed, 6 insertions, 11 deletions
diff --git a/Ryujinx.HLE/OsHle/Services/Aud/IAudioOutManager.cs b/Ryujinx.HLE/OsHle/Services/Aud/IAudioOutManager.cs
index cb1cf63b..18aedb32 100644
--- a/Ryujinx.HLE/OsHle/Services/Aud/IAudioOutManager.cs
+++ b/Ryujinx.HLE/OsHle/Services/Aud/IAudioOutManager.cs
@@ -23,7 +23,7 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
{ 0, ListAudioOuts },
{ 1, OpenAudioOut },
{ 2, ListAudioOutsAuto },
- { 3, OpenAudioOutAuto }
+ { 3, OpenAudioOutAuto }
};
}
@@ -57,7 +57,7 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
return 0;
}
- public long ListAudioOutsMethod(ServiceCtx Context, long Position, long Size)
+ public void ListAudioOutsMethod(ServiceCtx Context, long Position, long Size)
{
int NameCount = 0;
@@ -75,19 +75,17 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
}
Context.ResponseData.Write(NameCount);
-
- return 0;
}
- public long OpenAudioOutMethod(ServiceCtx Context, long SendPosition, long SendSize, long ReceivePosition, long ReceiveSize)
+ public void OpenAudioOutMethod(ServiceCtx Context, long SendPosition, long SendSize, long ReceivePosition, long ReceiveSize)
{
IAalOutput AudioOut = Context.Ns.AudioOut;
string DeviceName = AMemoryHelper.ReadAsciiString(
Context.Memory,
SendPosition,
- SendSize
- );
+ SendSize
+ );
if (DeviceName == string.Empty)
{
@@ -103,8 +101,7 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
else
{
Context.Ns.Log.PrintError(LogClass.ServiceAudio, $"Output buffer size {ReceiveSize} too small!");
- }
-
+ }
int SampleRate = Context.RequestData.ReadInt32();
int Channels = Context.RequestData.ReadInt32();
@@ -136,8 +133,6 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
Context.ResponseData.Write(Channels);
Context.ResponseData.Write((int)Format);
Context.ResponseData.Write((int)PlaybackState.Stopped);
-
- return 0;
}
}
}