summaryrefslogtreecommitdiff
path: root/opl
diff options
context:
space:
mode:
authorSimon Howard2009-10-01 00:08:48 +0000
committerSimon Howard2009-10-01 00:08:48 +0000
commit4a70f989d2aacabffc2f02017704de042be7418a (patch)
tree7cde42aaf06daba10ecd7278d0d45677e70a776d /opl
parentb8b755758cfa1e297332e5edf8e9e166ddf327ac (diff)
downloadchocolate-doom-4a70f989d2aacabffc2f02017704de042be7418a.tar.gz
chocolate-doom-4a70f989d2aacabffc2f02017704de042be7418a.tar.bz2
chocolate-doom-4a70f989d2aacabffc2f02017704de042be7418a.zip
Convert to American English spellings.
Subversion-branch: /branches/opl-branch Subversion-revision: 1700
Diffstat (limited to 'opl')
-rw-r--r--opl/opl.c4
-rw-r--r--opl/opl_sdl.c18
2 files changed, 11 insertions, 11 deletions
diff --git a/opl/opl.c b/opl/opl.c
index 749c19d1..bf999d47 100644
--- a/opl/opl.c
+++ b/opl/opl.c
@@ -236,9 +236,9 @@ void OPL_WriteRegister(int reg, int value)
for (i=0; i<6; ++i)
{
- // An oddity of the Doom OPL code: at startup initialisation,
+ // An oddity of the Doom OPL code: at startup initialization,
// the spacing here is performed by reading from the register
- // port; after initialisation, the data port is read, instead.
+ // port; after initialization, the data port is read, instead.
if (init_stage_reg_writes)
{
diff --git a/opl/opl_sdl.c b/opl/opl_sdl.c
index e38f9f6e..40430546 100644
--- a/opl/opl_sdl.c
+++ b/opl/opl_sdl.c
@@ -79,11 +79,11 @@ static int16_t *mix_buffer = NULL;
// SDL parameters.
-static int sdl_was_initialised = 0;
+static int sdl_was_initialized = 0;
static int mixing_freq, mixing_channels;
static Uint16 mixing_format;
-static int SDLIsInitialised(void)
+static int SDLIsInitialized(void)
{
int freq, channels;
Uint16 format;
@@ -227,13 +227,13 @@ static void OPL_SDL_Shutdown(void)
{
Mix_SetPostMix(NULL, NULL);
- if (sdl_was_initialised)
+ if (sdl_was_initialized)
{
Mix_CloseAudio();
SDL_QuitSubSystem(SDL_INIT_AUDIO);
OPL_Queue_Destroy(callback_queue);
free(mix_buffer);
- sdl_was_initialised = 0;
+ sdl_was_initialized = 0;
}
if (opl_emulator != NULL)
@@ -281,9 +281,9 @@ static void TimerHandler(int channel, double interval_seconds)
static int OPL_SDL_Init(unsigned int port_base)
{
// Check if SDL_mixer has been opened already
- // If not, we must initialise it now
+ // If not, we must initialize it now
- if (!SDLIsInitialised())
+ if (!SDLIsInitialized())
{
if (SDL_Init(SDL_INIT_AUDIO) < 0)
{
@@ -304,11 +304,11 @@ static int OPL_SDL_Init(unsigned int port_base)
// When this module shuts down, it has the responsibility to
// shut down SDL.
- sdl_was_initialised = 1;
+ sdl_was_initialized = 1;
}
else
{
- sdl_was_initialised = 0;
+ sdl_was_initialized = 0;
}
opl_sdl_paused = 0;
@@ -345,7 +345,7 @@ static int OPL_SDL_Init(unsigned int port_base)
if (opl_emulator == NULL)
{
- fprintf(stderr, "Failed to initialise software OPL emulator!\n");
+ fprintf(stderr, "Failed to initialize software OPL emulator!\n");
OPL_SDL_Shutdown();
return 0;
}