g72x.(c|h) : Minor cleanup of interface.

This commit is contained in:
Erik de Castro Lopo 2005-10-29 12:50:14 +00:00
parent 2814d19a12
commit d78e308a9e
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-10-29 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/G72x/g72x.[ch]
Minor cleanup of interface.
2005-10-28 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/ogg.c

View File

@ -37,6 +37,7 @@
#include "g72x.h"
#include "g72x_priv.h"
static G72x_STATE * g72x_state_new (void) ;
static int unpack_bytes (int bits, int blocksize, const unsigned char * block, short * samples) ;
static int pack_bytes (int bits, const short * samples, unsigned char * block) ;
@ -99,7 +100,7 @@ int fmult (int an, int srn)
return (((an ^ srn) < 0) ? -retval : retval);
}
G72x_STATE * g72x_state_new (void)
static G72x_STATE * g72x_state_new (void)
{ return calloc (1, sizeof (G72x_STATE)) ;
}

View File

@ -59,12 +59,10 @@ enum
G721_40_BYTES_PER_BLOCK = (G721_40_BITS_PER_SAMPLE * G72x_BLOCK_SIZE) / 8
} ;
/* Forward declaration of of g72x_state and the state constructor. */
/* Forward declaration of of g72x_state. */
struct g72x_state ;
struct g72x_state * g72x_state_new (void) ;
/* External function definitions. */
struct g72x_state * g72x_reader_init (int codec, int *blocksize, int *samplesperblock) ;