X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=alawulaw.c;h=72fee4bcd01fd982d555dff11f133c60a79dfe05;hp=07d5351123ee6b0ef4687c55d73cf110d886fdfb;hb=2f9f37a9110e3c8fe7a317894c8aec5ed602b39c;hpb=2ed0fee489c37a6e2d4473f6185ebbe3e746ac11 diff --git a/alawulaw.c b/alawulaw.c index 07d5351..72fee4b 100644 --- a/alawulaw.c +++ b/alawulaw.c @@ -9,10 +9,10 @@ ** ** \*****************************************************************************/ -signed long *audio_law_to_s32; +signed int *audio_law_to_s32; /* ulaw -> signed 16-bit */ -static signed long audio_ulaw_to_s32[] = +static signed int audio_ulaw_to_s32[] = { 0xffff8284, 0xffff8684, 0xffff8a84, 0xffff8e84, 0xffff9284, 0xffff9684, 0xffff9a84, 0xffff9e84, @@ -81,7 +81,7 @@ static signed long audio_ulaw_to_s32[] = }; /* alaw -> signed 16-bit */ -static signed long audio_alaw_to_s32[] = +static signed int audio_alaw_to_s32[] = { 0x000013fc, 0xffffec04, 0x00000144, 0xfffffebc, 0x0000517c, 0xffffae84, 0x0000051c, 0xfffffae4, @@ -228,8 +228,7 @@ void generate_tables(char law) { int i, j; - if (law == 'a') - { + if (law == 'a') { audio_law_to_s32=audio_alaw_to_s32; /* generating alaw-table */ i = j = 0; @@ -242,8 +241,7 @@ void generate_tables(char law) = audio_alaw_relations[(j<<1)|1]; i++; } - } else - { + } else { audio_law_to_s32=audio_ulaw_to_s32; /* generating ulaw-table */ i = j = 0;