diff options
author | Nuke.YKT | 2015-05-29 17:30:12 +0900 |
---|---|---|
committer | Nuke.YKT | 2015-05-29 17:30:12 +0900 |
commit | 1e516e34911d3a95479c303fe26b59f20e618252 (patch) | |
tree | 09fae977fd34c03759d5c90e7daf2a087e6e7756 /opl | |
parent | 54c2e6d4e513cd74fa35e05f9de840c4a8647b8d (diff) | |
download | chocolate-doom-1e516e34911d3a95479c303fe26b59f20e618252.tar.gz chocolate-doom-1e516e34911d3a95479c303fe26b59f20e618252.tar.bz2 chocolate-doom-1e516e34911d3a95479c303fe26b59f20e618252.zip |
Text formatting.
Diffstat (limited to 'opl')
-rw-r--r-- | opl/opl_sdl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opl/opl_sdl.c b/opl/opl_sdl.c index 0621995f..1334ac07 100644 --- a/opl/opl_sdl.c +++ b/opl/opl_sdl.c @@ -71,7 +71,7 @@ static uint64_t pause_offset; // OPL software emulator structure. static Chip opl_chip; -static int opl_new; +static int opl_opl3mode; // Temporary mixing buffer used by the mixing callback. @@ -165,7 +165,7 @@ static void FillBuffer(int16_t *buffer, unsigned int nsamples) assert(nsamples < mixing_freq); - if (opl_new) + if (opl_opl3mode) { Chip__GenerateBlock3(&opl_chip, nsamples, mix_buffer); @@ -374,7 +374,7 @@ static int OPL_SDL_Init(unsigned int port_base) DBOPL_InitTables(); Chip__Chip(&opl_chip); Chip__Setup(&opl_chip, mixing_freq); - opl_new = 0; + opl_opl3mode = 0; callback_mutex = SDL_CreateMutex(); callback_queue_mutex = SDL_CreateMutex(); @@ -462,7 +462,7 @@ static void WriteRegister(unsigned int reg_num, unsigned int value) break; case OPL_REG_NEW: - opl_new = value & 0x01; + opl_opl3mode = value & 0x01; default: Chip__WriteReg(&opl_chip, reg_num, value); |