summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/resampler.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libgme/resampler.c')
-rw-r--r--apps/codecs/libgme/resampler.c14
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
60void mix_mono( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out_ ) 60static 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
93void mix_stereo( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out_ ) 93static 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
136void mix_stereo_no_center( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out_ ) 136static 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
174dsample_t const* resample_( struct Resampler* this, dsample_t** out_, 174static 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
212inline int resample_wrapper( struct Resampler* this, dsample_t out [], int* out_size, 212static 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
226int skip_input( struct Resampler* this, int count ) 226static 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
238void play_frame_( struct Resampler* this, struct Stereo_Buffer* stereo_buf, dsample_t* out ) 238static 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 );