diff --git a/opl/opl3.c b/opl/opl3.c index 090854bc..81ef0f6a 100644 --- a/opl/opl3.c +++ b/opl/opl3.c @@ -1420,11 +1420,11 @@ void OPL3_WriteRegBuffered(opl3_chip *chip, Bit16u reg, Bit8u v) void OPL3_GenerateStream(opl3_chip *chip, Bit16s *sndptr, Bit32u numsamples) { - Bit32u i; + Bit32u i; - for(i = 0; i < numsamples; i++) + for(i = 0; i < numsamples; i++) { OPL3_GenerateResampled(chip, sndptr); sndptr += 2; - } + } } diff --git a/opl/opl3.h b/opl/opl3.h index 0c738af5..7d2ace42 100644 --- a/opl/opl3.h +++ b/opl/opl3.h @@ -114,7 +114,7 @@ struct _opl3_chip { Bit16s zeromod; Bit32s mixbuff[2]; //OPL3L - Bit32s rateratio; + Bit32s rateratio; Bit32s samplecnt; Bit16s oldsamples[2]; Bit16s samples[2]; diff --git a/opl/opl_sdl.c b/opl/opl_sdl.c index 40449fef..370e6b87 100644 --- a/opl/opl_sdl.c +++ b/opl/opl_sdl.c @@ -152,7 +152,7 @@ static void AdvanceTime(unsigned int nsamples) SDL_UnlockMutex(callback_queue_mutex); } - + // Call the OPL emulator code to fill the specified buffer. static void FillBuffer(int16_t *buffer, unsigned int nsamples)