From e80acd41b8b6450c83a83fe37a47bc75a3d5d88c Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sat, 10 Sep 2011 21:08:13 +0000 Subject: libgme: make local functions static, where possible git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30498 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libgme/resampler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/codecs/libgme/resampler.c') diff --git a/apps/codecs/libgme/resampler.c b/apps/codecs/libgme/resampler.c index 91677cbb8a..c4f42a9794 100644 --- a/apps/codecs/libgme/resampler.c +++ b/apps/codecs/libgme/resampler.c @@ -64,7 +64,7 @@ void Resampler_resize( struct Resampler* this, int pairs ) } } -void mix_samples( struct Resampler* this, struct Blip_Buffer* blip_buf, dsample_t out_ [] ) +static void mix_samples( struct Resampler* this, struct Blip_Buffer* blip_buf, dsample_t out_ [] ) { int const bass = BLIP_READER_BASS( *blip_buf ); BLIP_READER_BEGIN( sn, *blip_buf ); @@ -97,7 +97,7 @@ void mix_samples( struct Resampler* this, struct Blip_Buffer* blip_buf, dsample_ BLIP_READER_END( sn, *blip_buf ); } -dsample_t const* resample_( struct Resampler* this, dsample_t** out_, +static dsample_t const* resample_( struct Resampler* this, dsample_t** out_, dsample_t const* out_end, dsample_t const in [], int in_size ) { in_size -= write_offset; @@ -149,7 +149,7 @@ static inline int resample_wrapper( struct Resampler* this, dsample_t out [], in return result; } -int skip_input( struct Resampler* this, int count ) +static int skip_input( struct Resampler* this, int count ) { this->write_pos -= count; if ( this->write_pos < 0 ) // occurs when downsampling @@ -161,7 +161,7 @@ int skip_input( struct Resampler* this, int count ) return count; } -void play_frame_( struct Resampler* this, struct Blip_Buffer* blip_buf, dsample_t* out ) +static void play_frame_( struct Resampler* this, struct Blip_Buffer* blip_buf, dsample_t* out ) { int pair_count = this->sample_buf_size >> 1; blip_time_t blip_time = Blip_count_clocks( blip_buf, pair_count ); -- cgit v1.2.3