File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ - (void)setupEmulation
257
257
_bufFrameSize = (SAMPLERATE / self.frameInterval );
258
258
259
259
_soundBuffer = new int16_t [_bufFrameSize * self .channelCount];
260
- [[self ringBufferAtIndex: 0 ] setLength: (sizeof (int16_t ) * _bufFrameSize * self .channelCount * 5 )];
260
+ // [[self ringBufferAtIndex:0] setLength:(sizeof(int16_t) * _bufFrameSize * self.channelCount * 5)];
261
261
262
262
memset (_soundBuffer, 0 , _bufFrameSize * self.channelCount * sizeof (int16_t ));
263
263
_nesSound->samples [0 ] = _soundBuffer;
@@ -270,7 +270,7 @@ - (void)executeFrame
270
270
{
271
271
_emu.Execute (_nesVideo, _nesSound, _controls);
272
272
273
- [[self ringBufferAtIndex :0 ] write: _soundBuffer maxLength: self .channelCount * _bufFrameSize * sizeof (int16_t )];
273
+ [[self audioBufferAtIndex :0 ] write: _soundBuffer maxLength: self .channelCount * _bufFrameSize * sizeof (int16_t )];
274
274
}
275
275
276
276
- (void )resetEmulation
You can’t perform that action at this time.
0 commit comments