forked from len0rd/rockbox
First attempt at ifdeffing out as much of the encoder stuff as possible from Speex. Gives a smaller binary and allows me to remove a couple more files from SOURCES.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15394 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6d88717f69
commit
bf1b7f131c
12 changed files with 253 additions and 43 deletions
|
|
@ -67,6 +67,7 @@ typedef struct SpeexHeader {
|
|||
} SpeexHeader;
|
||||
*/
|
||||
|
||||
#ifndef SPEEX_DISABLE_ENCODER
|
||||
void speex_init_header(SpeexHeader *header, int rate, int nb_channels, const SpeexMode *m)
|
||||
{
|
||||
int i;
|
||||
|
|
@ -125,6 +126,7 @@ char *speex_header_to_packet(SpeexHeader *header, int *size)
|
|||
*size = sizeof(SpeexHeader);
|
||||
return (char *)le_header;
|
||||
}
|
||||
#endif
|
||||
|
||||
SpeexHeader *speex_packet_to_header(char *packet, int size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue