aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/aac_plugin.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-17 01:47:32 +0000
committerEric Wong <normalperson@yhbt.net>2006-07-17 01:47:32 +0000
commit6f013cd9c4575c0be5b888c55de43186a6b6d698 (patch)
treef206035284494e61078b27b19041eb70ebda635e /src/inputPlugins/aac_plugin.c
parent5f508702229febe6c042de2d4fe6d23b855cd410 (diff)
downloadmpd-6f013cd9c4575c0be5b888c55de43186a6b6d698.tar.gz
mpd-6f013cd9c4575c0be5b888c55de43186a6b6d698.tar.xz
mpd-6f013cd9c4575c0be5b888c55de43186a6b6d698.zip
inputPlugins/*_plugin.c: static-fication
Nothing here is ever exported for linkage besides the InputPlugin structure, so mark them static to save a few bytes. git-svn-id: https://svn.musicpd.org/mpd/trunk@4382 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/aac_plugin.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/inputPlugins/aac_plugin.c b/src/inputPlugins/aac_plugin.c
index 33fb03dfb..3ce5e1be0 100644
--- a/src/inputPlugins/aac_plugin.c
+++ b/src/inputPlugins/aac_plugin.c
@@ -44,7 +44,7 @@ typedef struct {
int atEof;
} AacBuffer;
-void fillAacBuffer(AacBuffer *b) {
+static void fillAacBuffer(AacBuffer *b) {
if(b->bytesConsumed > 0) {
int bread;
@@ -79,7 +79,7 @@ void fillAacBuffer(AacBuffer *b) {
}
}
-void advanceAacBuffer(AacBuffer * b, int bytes) {
+static void advanceAacBuffer(AacBuffer * b, int bytes) {
b->fileOffset+=bytes;
b->bytesConsumed = bytes;
b->bytesIntoBuffer-=bytes;
@@ -88,7 +88,7 @@ void advanceAacBuffer(AacBuffer * b, int bytes) {
static int adtsSampleRates[] = {96000,88200,64000,48000,44100,32000,24000,22050,
16000,12000,11025,8000,7350,0,0,0};
-int adtsParse(AacBuffer * b, float * length) {
+static int adtsParse(AacBuffer * b, float * length) {
int frames, frameLength;
int tFrameLength = 0;
int sampleRate = 0;
@@ -134,7 +134,7 @@ int adtsParse(AacBuffer * b, float * length) {
return 1;
}
-void initAacBuffer(InputStream * inStream, AacBuffer * b, float * length,
+static void initAacBuffer(InputStream * inStream, AacBuffer * b, float * length,
size_t * retFileread, size_t * retTagsize)
{
size_t fileread;
@@ -200,7 +200,7 @@ void initAacBuffer(InputStream * inStream, AacBuffer * b, float * length,
}
}
-float getAacFloatTotalTime(char * file) {
+static float getAacFloatTotalTime(char * file) {
AacBuffer b;
float length;
size_t fileread, tagsize;
@@ -240,7 +240,7 @@ float getAacFloatTotalTime(char * file) {
return length;
}
-int getAacTotalTime(char * file) {
+static int getAacTotalTime(char * file) {
int time = -1;
float length;
@@ -250,7 +250,7 @@ int getAacTotalTime(char * file) {
}
-int aac_decode(OutputBuffer * cb, DecoderControl * dc, char * path) {
+static int aac_decode(OutputBuffer * cb, DecoderControl * dc, char * path) {
float time;
float totalTime;
faacDecHandle decoder;
@@ -395,7 +395,7 @@ int aac_decode(OutputBuffer * cb, DecoderControl * dc, char * path) {
return 0;
}
-MpdTag * aacTagDup(char * file) {
+static MpdTag * aacTagDup(char * file) {
MpdTag * ret = NULL;
int time;
@@ -412,7 +412,7 @@ MpdTag * aacTagDup(char * file) {
return ret;
}
-char * aacSuffixes[] = {"aac", NULL};
+static char * aacSuffixes[] = {"aac", NULL};
InputPlugin aacPlugin =
{