From ed8e8508f859e5cf67063476188dfc28a14951e7 Mon Sep 17 00:00:00 2001 From: goyuken Date: Fri, 14 Nov 2014 17:48:18 +0000 Subject: [PATCH] fix audio capture problem that broke with r7973 --- BizHawk.Client.EmuHawk/AVOut/AVSync.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BizHawk.Client.EmuHawk/AVOut/AVSync.cs b/BizHawk.Client.EmuHawk/AVOut/AVSync.cs index 6a05e4f193..1e13e2f68b 100644 --- a/BizHawk.Client.EmuHawk/AVOut/AVSync.cs +++ b/BizHawk.Client.EmuHawk/AVOut/AVSync.cs @@ -16,7 +16,6 @@ namespace BizHawk.Client.EmuHawk } private long _soundRemainder; // audio timekeeping for video dumping - private short[] _samples = new short[0]; public void DumpAV(IVideoProvider v, ISoundProvider s, out short[] samples, out int samplesprovided) { @@ -29,9 +28,7 @@ namespace BizHawk.Client.EmuHawk // exactly remember fractional parts of an audio sample _soundRemainder = nsampnum % fpsnum; - if (nsamp * channels != _samples.Length) - _samples = new short[nsamp * channels]; - samples = _samples; + samples = new short[nsamp * channels]; s.GetSamples(samples); samplesprovided = (int)nsamp;