AUDIO: Fix some whitespaces
This commit is contained in:
parent
a2a5083dc9
commit
3d576c184a
1 changed files with 85 additions and 82 deletions
|
@ -60,7 +60,7 @@ namespace Audio {
|
||||||
* ARM routine we call doesn't respect those definitions.
|
* ARM routine we call doesn't respect those definitions.
|
||||||
*/
|
*/
|
||||||
#define FRAC_BITS 16
|
#define FRAC_BITS 16
|
||||||
#define FRAC_ONE (1<<FRAC_BITS)
|
#define FRAC_ONE (1 << FRAC_BITS)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The size of the intermediate input cache. Bigger values may increase
|
* The size of the intermediate input cache. Bigger values may increase
|
||||||
|
@ -164,8 +164,7 @@ extern "C" st_sample_t *ARM_SimpleRate_R(
|
||||||
st_volume_t vol_l,
|
st_volume_t vol_l,
|
||||||
st_volume_t vol_r);
|
st_volume_t vol_r);
|
||||||
|
|
||||||
extern "C" int SimpleRate_readFudge(Audio::AudioStream &input,
|
extern "C" int SimpleRate_readFudge(Audio::AudioStream &input, int16 *a, int b)
|
||||||
int16 *a, int b)
|
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_RATECONV
|
#ifdef DEBUG_RATECONV
|
||||||
debug("Reading ptr=%x n%d", a, b);
|
debug("Reading ptr=%x n%d", a, b);
|
||||||
|
@ -197,7 +196,8 @@ int SimpleRateConverter<stereo, reverseStereo>::flow(AudioStream &input, st_samp
|
||||||
&sr,
|
&sr,
|
||||||
obuf, osamp, vol_l, vol_r);
|
obuf, osamp, vol_l, vol_r);
|
||||||
}
|
}
|
||||||
return (obuf-ostart)/2;
|
|
||||||
|
return (obuf - ostart) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -342,7 +342,7 @@ int LinearRateConverter<stereo, reverseStereo>::flow(AudioStream &input, st_samp
|
||||||
&lr,
|
&lr,
|
||||||
obuf, osamp, vol_l, vol_r);
|
obuf, osamp, vol_l, vol_r);
|
||||||
}
|
}
|
||||||
return (obuf-ostart)/2;
|
return (obuf - ostart) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -386,6 +386,7 @@ template<bool stereo, bool reverseStereo>
|
||||||
class CopyRateConverter : public RateConverter {
|
class CopyRateConverter : public RateConverter {
|
||||||
st_sample_t *_buffer;
|
st_sample_t *_buffer;
|
||||||
st_size_t _bufferSize;
|
st_size_t _bufferSize;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CopyRateConverter() : _buffer(0), _bufferSize(0) {}
|
CopyRateConverter() : _buffer(0), _bufferSize(0) {}
|
||||||
~CopyRateConverter() {
|
~CopyRateConverter() {
|
||||||
|
@ -424,8 +425,9 @@ public:
|
||||||
else
|
else
|
||||||
obuf = ARM_CopyRate_M(len, obuf, vol_l, vol_r, _buffer);
|
obuf = ARM_CopyRate_M(len, obuf, vol_l, vol_r, _buffer);
|
||||||
|
|
||||||
return (obuf-ostart)/2;
|
return (obuf - ostart) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int drain(st_sample_t *obuf, st_size_t osamp, st_volume_t vol) {
|
virtual int drain(st_sample_t *obuf, st_size_t osamp, st_volume_t vol) {
|
||||||
return (ST_SUCCESS);
|
return (ST_SUCCESS);
|
||||||
}
|
}
|
||||||
|
@ -469,3 +471,4 @@ RateConverter *makeRateConverter(st_rate_t inrate, st_rate_t outrate, bool stere
|
||||||
}
|
}
|
||||||
|
|
||||||
} // End of namespace Audio
|
} // End of namespace Audio
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue