Refactor and rewrite.

Perl script is removed in favour of C. Stale documentation and initfiles
are removed for now also.

C interface works, but still needs work (for example, mDNS is missing) -
see TODO.
This commit is contained in:
James Laird
2013-04-01 18:57:08 +11:00
parent 98a86371d0
commit a2fb5d219d
26 changed files with 1767 additions and 3524 deletions
+6 -6
View File
@@ -55,7 +55,7 @@ static const int host_bigendian = 0;
struct {signed int x:24;} se_struct_24;
#define SignExtend24(val) (se_struct_24.x = val)
void allocate_buffers(alac_file *alac)
void alac_allocate_buffers(alac_file *alac)
{
alac->predicterror_buffer_a = malloc(alac->setinfo_max_samples_per_frame * 4);
alac->predicterror_buffer_b = malloc(alac->setinfo_max_samples_per_frame * 4);
@@ -110,7 +110,7 @@ void alac_set_info(alac_file *alac, char *inputbuffer)
if (!host_bigendian)
_Swap32(alac->setinfo_8a_rate);
allocate_buffers(alac);
alac_allocate_buffers(alac);
}
@@ -687,9 +687,9 @@ static void deinterlace_24(int32_t *buffer_a, int32_t *buffer_b,
}
void decode_frame(alac_file *alac,
unsigned char *inbuffer,
void *outbuffer, int *outputsize)
void alac_decode_frame(alac_file *alac,
unsigned char *inbuffer,
void *outbuffer, int *outputsize)
{
int channels;
int32_t outputsamples = alac->setinfo_max_samples_per_frame;
@@ -1104,7 +1104,7 @@ void decode_frame(alac_file *alac,
}
}
alac_file *create_alac(int samplesize, int numchannels)
alac_file *alac_create(int samplesize, int numchannels)
{
alac_file *newfile = malloc(sizeof(alac_file));