Mercurial > mplayer.hg
changeset 24561:90b0691d9709
Fix loads of typos
author | reimar |
---|---|
date | Wed, 19 Sep 2007 15:44:09 +0000 |
parents | 682430d8bcc5 |
children | 1437b1509d10 |
files | libaf/af_format.c |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/libaf/af_format.c Wed Sep 19 14:47:12 2007 +0000 +++ b/libaf/af_format.c Wed Sep 19 15:44:09 2007 +0000 @@ -28,14 +28,14 @@ /* Functions used by play to convert the input audio to the correct format */ -/* The below includes retrives functions for converting to and from +/* The below includes retrieves functions for converting to and from ulaw and alaw */ #include "af_format_ulaw.c" #include "af_format_alaw.c" -// Switch endianess +// Switch endianness static void endian(void* in, void* out, int len, int bps); -// From singed to unsigned and the other way +// From signed to unsigned and the other way static void si2us(void* data, int len, int bps); // Change the number of bits per sample static void change_bps(void* in, void* out, int len, int inbps, int outbps); @@ -110,11 +110,11 @@ af->play = play; // set default - // look whether only endianess differences are there + // look whether only endianness differences are there if ((af->data->format & ~AF_FORMAT_END_MASK) == (data->format & ~AF_FORMAT_END_MASK)) { - af_msg(AF_MSG_VERBOSE,"[format] Accelerated endianess conversion only\n"); + af_msg(AF_MSG_VERBOSE,"[format] Accelerated endianness conversion only\n"); af->play = play_swapendian; } if ((data->format == AF_FORMAT_FLOAT_NE) && @@ -146,7 +146,7 @@ return AF_OK; } case AF_CONTROL_FORMAT_FMT | AF_CONTROL_SET:{ - // Check for errors in configuraton + // Check for errors in configuration if(AF_OK != check_format(*(int*)arg)) return AF_ERROR; @@ -172,7 +172,7 @@ { af_data_t* l = af->data; // Local data af_data_t* c = data; // Current working data - int len = c->len/c->bps; // Lenght in samples of current audio block + int len = c->len/c->bps; // Length in samples of current audio block if(AF_OK != RESIZE_LOCAL_BUFFER(af,data)) return NULL; @@ -189,7 +189,7 @@ { af_data_t* l = af->data; // Local data af_data_t* c = data; // Current working data - int len = c->len/4; // Lenght in samples of current audio block + int len = c->len/4; // Length in samples of current audio block if(AF_OK != RESIZE_LOCAL_BUFFER(af,data)) return NULL; @@ -208,7 +208,7 @@ { af_data_t* l = af->data; // Local data af_data_t* c = data; // Current working data - int len = c->len/2; // Lenght in samples of current audio block + int len = c->len/2; // Length in samples of current audio block if(AF_OK != RESIZE_LOCAL_BUFFER(af,data)) return NULL; @@ -228,7 +228,7 @@ { af_data_t* l = af->data; // Local data af_data_t* c = data; // Current working data - int len = c->len/c->bps; // Lenght in samples of current audio block + int len = c->len/c->bps; // Length in samples of current audio block if(AF_OK != RESIZE_LOCAL_BUFFER(af,data)) return NULL; @@ -292,7 +292,7 @@ } } - // Switch from cpu native endian to the correct endianess + // Switch from cpu native endian to the correct endianness if((l->format&AF_FORMAT_END_MASK)!=AF_FORMAT_NE) endian(l->audio,l->audio,len,l->bps);