mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-24 01:25:28 +00: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
|
@ -346,7 +346,6 @@ namespace Ryujinx.HLE.HOS.Services.Audio.AudioRendererManager
|
||||||
|
|
||||||
int outOffset = 0;
|
int outOffset = 0;
|
||||||
int pendingSamples = MixBufferSamplesCount;
|
int pendingSamples = MixBufferSamplesCount;
|
||||||
float volume = voice.Volume;
|
|
||||||
|
|
||||||
while (pendingSamples > 0)
|
while (pendingSamples > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
public int VoiceSize;
|
public int VoiceSize;
|
||||||
public int VoiceResourceSize;
|
public int VoiceResourceSize;
|
||||||
public int EffectSize;
|
public int EffectSize;
|
||||||
public int MixeSize;
|
public int MixSize;
|
||||||
public int SinkSize;
|
public int SinkSize;
|
||||||
public int PerformanceManagerSize;
|
public int PerformanceManagerSize;
|
||||||
public int Unknown24;
|
public int Unknown24;
|
||||||
|
|
|
@ -108,7 +108,7 @@ namespace Ryujinx.HLE.HOS.Services.Audio.AudioRendererManager
|
||||||
|
|
||||||
if (wb.Looping == 0)
|
if (wb.Looping == 0)
|
||||||
{
|
{
|
||||||
SetBufferIndex((_bufferIndex + 1) & 3);
|
SetBufferIndex(_bufferIndex + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
_outStatus.PlayedWaveBuffersCount++;
|
_outStatus.PlayedWaveBuffersCount++;
|
||||||
|
|
Loading…
Reference in a new issue