Pause audio playback on last stream buffer
This commit is contained in:
parent
07ac67a623
commit
be4ac28aa0
1 changed files with 12 additions and 0 deletions
|
@ -61,6 +61,13 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
|
|||
|
||||
public int[] GetBufferData(AMemory Memory, int MaxSamples, out int SamplesCount)
|
||||
{
|
||||
if (!Playing)
|
||||
{
|
||||
SamplesCount = 0;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if (BufferReload)
|
||||
{
|
||||
BufferReload = false;
|
||||
|
@ -99,6 +106,11 @@ namespace Ryujinx.HLE.OsHle.Services.Aud
|
|||
}
|
||||
|
||||
OutStatus.PlayedWaveBuffersCount++;
|
||||
|
||||
if (Wb.LastBuffer != 0)
|
||||
{
|
||||
PlayState = PlayState.Paused;
|
||||
}
|
||||
}
|
||||
|
||||
return Output;
|
||||
|
|
Loading…
Add table
Reference in a new issue