mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-28 05:14:04 +00:00
delete mixed tabs & spaces & use void for methods
This commit is contained in:
parent
e40db09bed
commit
5a3449f5d9
1 changed files with 6 additions and 11 deletions
|
@ -23,7 +23,7 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
|
||||||
{ 0, ListAudioOuts },
|
{ 0, ListAudioOuts },
|
||||||
{ 1, OpenAudioOut },
|
{ 1, OpenAudioOut },
|
||||||
{ 2, ListAudioOutsAuto },
|
{ 2, ListAudioOutsAuto },
|
||||||
{ 3, OpenAudioOutAuto }
|
{ 3, OpenAudioOutAuto }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long ListAudioOutsMethod(ServiceCtx Context, long Position, long Size)
|
public void ListAudioOutsMethod(ServiceCtx Context, long Position, long Size)
|
||||||
{
|
{
|
||||||
int NameCount = 0;
|
int NameCount = 0;
|
||||||
|
|
||||||
|
@ -75,19 +75,17 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
|
||||||
}
|
}
|
||||||
|
|
||||||
Context.ResponseData.Write(NameCount);
|
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;
|
IAalOutput AudioOut = Context.Ns.AudioOut;
|
||||||
|
|
||||||
string DeviceName = AMemoryHelper.ReadAsciiString(
|
string DeviceName = AMemoryHelper.ReadAsciiString(
|
||||||
Context.Memory,
|
Context.Memory,
|
||||||
SendPosition,
|
SendPosition,
|
||||||
SendSize
|
SendSize
|
||||||
);
|
);
|
||||||
|
|
||||||
if (DeviceName == string.Empty)
|
if (DeviceName == string.Empty)
|
||||||
{
|
{
|
||||||
|
@ -103,8 +101,7 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Context.Ns.Log.PrintError(LogClass.ServiceAudio, $"Output buffer size {ReceiveSize} too small!");
|
Context.Ns.Log.PrintError(LogClass.ServiceAudio, $"Output buffer size {ReceiveSize} too small!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int SampleRate = Context.RequestData.ReadInt32();
|
int SampleRate = Context.RequestData.ReadInt32();
|
||||||
int Channels = 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(Channels);
|
||||||
Context.ResponseData.Write((int)Format);
|
Context.ResponseData.Write((int)Format);
|
||||||
Context.ResponseData.Write((int)PlaybackState.Stopped);
|
Context.ResponseData.Write((int)PlaybackState.Stopped);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue