Audio: More style nits
This commit is contained in:
parent
77c066b4db
commit
74e361cf84
1 changed files with 13 additions and 9 deletions
|
@ -130,7 +130,9 @@ namespace Ryujinx.Audio.SoundIo
|
||||||
int frameCount = Math.Min(bufferedFrames, maxFrameCount);
|
int frameCount = Math.Min(bufferedFrames, maxFrameCount);
|
||||||
|
|
||||||
if (frameCount == 0)
|
if (frameCount == 0)
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SoundIOChannelAreas areas = AudioStream.BeginWrite(ref frameCount);
|
SoundIOChannelAreas areas = AudioStream.BeginWrite(ref frameCount);
|
||||||
int channelCount = areas.ChannelCount;
|
int channelCount = areas.ChannelCount;
|
||||||
|
@ -395,7 +397,9 @@ namespace Ryujinx.Audio.SoundIo
|
||||||
|
|
||||||
// Obtain the channel area for each channel
|
// Obtain the channel area for each channel
|
||||||
for (int i = 0; i < channelCount; i++)
|
for (int i = 0; i < channelCount; i++)
|
||||||
|
{
|
||||||
channels[i] = areas.GetArea(i);
|
channels[i] = areas.GetArea(i);
|
||||||
|
}
|
||||||
|
|
||||||
fixed (byte* srcptr = samples)
|
fixed (byte* srcptr = samples)
|
||||||
{
|
{
|
||||||
|
@ -530,9 +534,9 @@ namespace Ryujinx.Audio.SoundIo
|
||||||
OnBufferReleased();
|
OnBufferReleased();
|
||||||
ReleasedBuffers.Clear();
|
ReleasedBuffers.Clear();
|
||||||
|
|
||||||
|
State = PlaybackState.Stopped;
|
||||||
AudioStream = null;
|
AudioStream = null;
|
||||||
BufferReleased = null;
|
BufferReleased = null;
|
||||||
State = PlaybackState.Stopped;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnBufferReleased()
|
private void OnBufferReleased()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue