Mercurial > hg > dmlib
diff src/dmengine.c @ 1102:e06abfde6c39
Cosmetics pass: Remove excess whitespace.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 03 Mar 2015 23:22:36 +0200 |
parents | 771e03bf9fcd |
children | 848a88ce7a57 |
line wrap: on
line diff
--- a/src/dmengine.c Tue Mar 03 22:32:34 2015 +0200 +++ b/src/dmengine.c Tue Mar 03 23:22:36 2015 +0200 @@ -33,14 +33,14 @@ if (engineEffects == NULL) { return dmErrorDBG(DMERR_INIT_FAIL, - "Could not expand effects structure.\n"); + "Could not expand effects structure.\n"); } } // Copy effects structure memcpy(engineEffects + nengineEffects, ef, sizeof(DMEffect)); nengineEffects++; - + return DMERR_OK; } @@ -54,7 +54,7 @@ if (engine->effectData == NULL) { return dmErrorDBG(DMERR_INIT_FAIL, - "Could not expand effects data structure.\n"); + "Could not expand effects data structure.\n"); } for (i = 0; i < nengineEffects; i++) @@ -194,7 +194,7 @@ { return dmftell((DMResource *) datasource); } - + static ov_callbacks vorbisFileCBS = { @@ -306,7 +306,7 @@ if (res == NULL) return DMERR_NULLPTR; - + fext = strrchr(res->filename, '.'); for (i = 0; i < nengineResOps; i++) { @@ -317,7 +317,7 @@ return DMERR_OK; } } - + return DMERR_OK; } @@ -434,7 +434,7 @@ return; dmMutexLock(engine->audioStreamMutex); - + // Update variables for analysis buffer (FFT, etc.) engine->audioStreamBuf = stream; engine->audioStreamLen = len / engine->audioSampleSize; @@ -523,7 +523,7 @@ case AUDIO_S16SYS: case AUDIO_U16SYS: engine->audioSampleSize *= 2; break; } - + if (SDL_OpenAudio(&engine->optAfmt, NULL) < 0) { // We'll let this pass, as we want to support no-sound.