Skip to content

Commit ada5c15

Browse files
committed
re-add audio_batch_cb
Signed-off-by: Joe Mattiello <[email protected]>
1 parent b93bcbc commit ada5c15

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/dac.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
#include "../libretro.h"
5555

56-
//extern retro_audio_sample_batch_t audio_batch_cb;
56+
extern retro_audio_sample_batch_t audio_batch_cb;
5757

5858
#define BUFFER_SIZE 0x10000 // Make the DAC buffers 64K x 16 bits
5959
#define DAC_AUDIO_RATE 48000 // Set the audio rate to 48 KHz
@@ -183,12 +183,12 @@ void SDLSoundCallback(void * userdata, uint16_t * buffer, int length)
183183
{
184184
double timeToNextEvent = GetTimeToNextEvent(EVENT_JERRY);
185185

186-
DSPExec(USEC_TO_RISC_CYCLES(timeToNextEvent));
186+
DSPExec(USEC_TO_RISC_CYCLES(timeToNextEvent));
187187

188-
HandleNextEvent(EVENT_JERRY);
189-
}
190-
while (!bufferDone);
191-
// audio_batch_cb((int16_t*)sampleBuffer, length / 2);
188+
HandleNextEvent(EVENT_JERRY);
189+
}
190+
while (!bufferDone);
191+
audio_batch_cb((int16_t*)sampleBuffer, length / 2);
192192
}
193193

194194
// LTXD/RTXD/SCLK/SMODE ($F1A148/4C/50/54)

0 commit comments

Comments
 (0)