From bf1b7f131c933b83afe62f01c200366e4e2e37f3 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Thu, 1 Nov 2007 21:30:51 +0000 Subject: 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 --- apps/codecs/libspeex/speex_header.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/codecs/libspeex/speex_header.c') diff --git a/apps/codecs/libspeex/speex_header.c b/apps/codecs/libspeex/speex_header.c index 2e7c415..8fd1665 100644 --- a/apps/codecs/libspeex/speex_header.c +++ b/apps/codecs/libspeex/speex_header.c @@ -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) { -- cgit v1.1