diff options
Diffstat (limited to 'apps/codecs/libgme/resampler.c')
-rw-r--r-- | apps/codecs/libgme/resampler.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libgme/resampler.c b/apps/codecs/libgme/resampler.c index bcd98f68d2..d9dcea02c6 100644 --- a/apps/codecs/libgme/resampler.c +++ b/apps/codecs/libgme/resampler.c | |||
@@ -57,7 +57,7 @@ void Resampler_resize( struct Resampler* this, int pairs ) | |||
57 | } | 57 | } |
58 | } | 58 | } |
59 | 59 | ||
60 | void mix_mono( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out_ ) | 60 | static void mix_mono( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out_ ) |
61 | { | 61 | { |
62 | int const bass = BLIP_READER_BASS( stereo_buf->bufs [0] ); | 62 | int const bass = BLIP_READER_BASS( stereo_buf->bufs [0] ); |
63 | BLIP_READER_BEGIN( sn, stereo_buf->bufs [0] ); | 63 | BLIP_READER_BEGIN( sn, stereo_buf->bufs [0] ); |
@@ -90,7 +90,7 @@ void mix_mono( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample | |||
90 | BLIP_READER_END( sn, stereo_buf->bufs [0] ); | 90 | BLIP_READER_END( sn, stereo_buf->bufs [0] ); |
91 | } | 91 | } |
92 | 92 | ||
93 | void mix_stereo( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out_ ) | 93 | static void mix_stereo( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out_ ) |
94 | { | 94 | { |
95 | int const bass = BLIP_READER_BASS( stereo_buf->bufs [0] ); | 95 | int const bass = BLIP_READER_BASS( stereo_buf->bufs [0] ); |
96 | BLIP_READER_BEGIN( snc, stereo_buf->bufs [0] ); | 96 | BLIP_READER_BEGIN( snc, stereo_buf->bufs [0] ); |
@@ -133,7 +133,7 @@ void mix_stereo( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsamp | |||
133 | BLIP_READER_END( snr, stereo_buf->bufs [2] ); | 133 | BLIP_READER_END( snr, stereo_buf->bufs [2] ); |
134 | } | 134 | } |
135 | 135 | ||
136 | void mix_stereo_no_center( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out_ ) | 136 | static void mix_stereo_no_center( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out_ ) |
137 | { | 137 | { |
138 | int const bass = BLIP_READER_BASS( stereo_buf->bufs [0] ); | 138 | int const bass = BLIP_READER_BASS( stereo_buf->bufs [0] ); |
139 | BLIP_READER_BEGIN( snl, stereo_buf->bufs [1] ); | 139 | BLIP_READER_BEGIN( snl, stereo_buf->bufs [1] ); |
@@ -171,7 +171,7 @@ void mix_stereo_no_center( struct Resampler* this, struct Stereo_Buffer* stereo_ | |||
171 | BLIP_READER_END( snr, stereo_buf->bufs [2] ); | 171 | BLIP_READER_END( snr, stereo_buf->bufs [2] ); |
172 | } | 172 | } |
173 | 173 | ||
174 | dsample_t const* resample_( struct Resampler* this, dsample_t** out_, | 174 | static dsample_t const* resample_( struct Resampler* this, dsample_t** out_, |
175 | dsample_t const* out_end, dsample_t const in [], int in_size ) | 175 | dsample_t const* out_end, dsample_t const in [], int in_size ) |
176 | { | 176 | { |
177 | in_size -= write_offset; | 177 | in_size -= write_offset; |
@@ -209,7 +209,7 @@ dsample_t const* resample_( struct Resampler* this, dsample_t** out_, | |||
209 | return in; | 209 | return in; |
210 | } | 210 | } |
211 | 211 | ||
212 | inline int resample_wrapper( struct Resampler* this, dsample_t out [], int* out_size, | 212 | static inline int resample_wrapper( struct Resampler* this, dsample_t out [], int* out_size, |
213 | dsample_t const in [], int in_size ) | 213 | dsample_t const in [], int in_size ) |
214 | { | 214 | { |
215 | assert( Resampler_rate( this ) ); | 215 | assert( Resampler_rate( this ) ); |
@@ -223,7 +223,7 @@ inline int resample_wrapper( struct Resampler* this, dsample_t out [], int* out_ | |||
223 | return result; | 223 | return result; |
224 | } | 224 | } |
225 | 225 | ||
226 | int skip_input( struct Resampler* this, int count ) | 226 | static int skip_input( struct Resampler* this, int count ) |
227 | { | 227 | { |
228 | this->write_pos -= count; | 228 | this->write_pos -= count; |
229 | if ( this->write_pos < 0 ) // occurs when downsampling | 229 | if ( this->write_pos < 0 ) // occurs when downsampling |
@@ -235,7 +235,7 @@ int skip_input( struct Resampler* this, int count ) | |||
235 | return count; | 235 | return count; |
236 | } | 236 | } |
237 | 237 | ||
238 | void play_frame_( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out ) | 238 | static void play_frame_( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out ) |
239 | { | 239 | { |
240 | long pair_count = this->sample_buf_size >> 1; | 240 | long pair_count = this->sample_buf_size >> 1; |
241 | blip_time_t blip_time = Blip_count_clocks( &stereo_buf->bufs [0], pair_count ); | 241 | blip_time_t blip_time = Blip_count_clocks( &stereo_buf->bufs [0], pair_count ); |