mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Various small audren fixes (#894)
* Remove redundant modulo on wave buffer index This is already performed by SetBufferIndex * Correct typo in UpdateDataHeader MixeSize -> MixSize * Remove unused variable in audren 'volume' was unused and 'voice.Volume' was used instead so remove 'volume'
This commit is contained in:
parent
595e7716d8
commit
90b4759085
3 changed files with 2 additions and 3 deletions
|
@ -346,7 +346,6 @@ namespace Ryujinx.HLE.HOS.Services.Audio.AudioRendererManager
|
|||
|
||||
int outOffset = 0;
|
||||
int pendingSamples = MixBufferSamplesCount;
|
||||
float volume = voice.Volume;
|
||||
|
||||
while (pendingSamples > 0)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
public int VoiceSize;
|
||||
public int VoiceResourceSize;
|
||||
public int EffectSize;
|
||||
public int MixeSize;
|
||||
public int MixSize;
|
||||
public int SinkSize;
|
||||
public int PerformanceManagerSize;
|
||||
public int Unknown24;
|
||||
|
|
|
@ -108,7 +108,7 @@ namespace Ryujinx.HLE.HOS.Services.Audio.AudioRendererManager
|
|||
|
||||
if (wb.Looping == 0)
|
||||
{
|
||||
SetBufferIndex((_bufferIndex + 1) & 3);
|
||||
SetBufferIndex(_bufferIndex + 1);
|
||||
}
|
||||
|
||||
_outStatus.PlayedWaveBuffersCount++;
|
||||
|
|
Loading…
Reference in a new issue