aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio.Renderer/Server/CommandGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Audio.Renderer/Server/CommandGenerator.cs')
-rw-r--r--Ryujinx.Audio.Renderer/Server/CommandGenerator.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Audio.Renderer/Server/CommandGenerator.cs b/Ryujinx.Audio.Renderer/Server/CommandGenerator.cs
index 41f1c334..00fddefa 100644
--- a/Ryujinx.Audio.Renderer/Server/CommandGenerator.cs
+++ b/Ryujinx.Audio.Renderer/Server/CommandGenerator.cs
@@ -107,6 +107,8 @@ namespace Ryujinx.Audio.Renderer.Server
if (!voiceState.WasPlaying)
{
+ Debug.Assert(voiceState.SampleFormat != SampleFormat.Adpcm || channelIndex == 0);
+
if (_rendererContext.BehaviourContext.IsWaveBufferVersion2Supported())
{
_commandBuffer.GenerateDataSourceVersion2(ref voiceState,