Commit 29f442db authored by Dwedit's avatar Dwedit
Browse files

cosmetic - change tabs to spaces to match surrounding code

parent d915fdaa
...@@ -66,12 +66,12 @@ class HermiteResampler : public Resampler ...@@ -66,12 +66,12 @@ class HermiteResampler : public Resampler
void void
read (short *data, int num_samples) read (short *data, int num_samples)
{ {
//If we are outputting the exact same ratio as the input, pull directly from the input buffer //If we are outputting the exact same ratio as the input, pull directly from the input buffer
if (r_step == 1.0) if (r_step == 1.0)
{ {
ring_buffer::pull((unsigned char*)data, num_samples * sizeof(short)); ring_buffer::pull((unsigned char*)data, num_samples * sizeof(short));
return; return;
} }
int i_position = start >> 1; int i_position = start >> 1;
int max_samples = buffer_size >> 1; int max_samples = buffer_size >> 1;
...@@ -127,13 +127,13 @@ class HermiteResampler : public Resampler ...@@ -127,13 +127,13 @@ class HermiteResampler : public Resampler
inline int inline int
avail (void) avail (void)
{ {
//If we are outputting the exact same ratio as the input, find out directly from the input buffer //If we are outputting the exact same ratio as the input, find out directly from the input buffer
if (r_step == 1.0) if (r_step == 1.0)
{ {
return (ring_buffer::space_filled() + sizeof(short) - 1) / sizeof(short); return (ring_buffer::space_filled() + sizeof(short) - 1) / sizeof(short);
} }
return (int) floor (((size >> 2) - r_frac) / r_step) * 2; return (int) floor (((size >> 2) - r_frac) / r_step) * 2;
} }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment