fix audio capture problem that broke with r7973
This commit is contained in:
parent
d1292d8a48
commit
ed8e8508f8
|
@ -16,7 +16,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
|
|
||||||
private long _soundRemainder; // audio timekeeping for video dumping
|
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)
|
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
|
// exactly remember fractional parts of an audio sample
|
||||||
_soundRemainder = nsampnum % fpsnum;
|
_soundRemainder = nsampnum % fpsnum;
|
||||||
|
|
||||||
if (nsamp * channels != _samples.Length)
|
samples = new short[nsamp * channels];
|
||||||
_samples = new short[nsamp * channels];
|
|
||||||
samples = _samples;
|
|
||||||
s.GetSamples(samples);
|
s.GetSamples(samples);
|
||||||
samplesprovided = (int)nsamp;
|
samplesprovided = (int)nsamp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue