mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
g72x.(c|h) : Minor cleanup of interface.
This commit is contained in:
parent
2814d19a12
commit
d78e308a9e
@ -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
|
||||
|
@ -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)) ;
|
||||
}
|
||||
|
||||
|
@ -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) ;
|
||||
|
Loading…
Reference in New Issue
Block a user