mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
(nearest.c) style nits
This commit is contained in:
parent
6ba76d8c4b
commit
d32f63b6ed
@ -18,7 +18,8 @@ typedef struct rarch_nearest_resampler
|
|||||||
}rarch_nearest_resampler_t;
|
}rarch_nearest_resampler_t;
|
||||||
|
|
||||||
|
|
||||||
static void resampler_nearest_process(void *re_, struct resampler_data *data)
|
static void resampler_nearest_process(void *re_,
|
||||||
|
struct resampler_data *data)
|
||||||
{
|
{
|
||||||
(void)re_;
|
(void)re_;
|
||||||
float ratio;
|
float ratio;
|
||||||
@ -38,8 +39,10 @@ static void resampler_nearest_process(void *re_, struct resampler_data *data)
|
|||||||
|
|
||||||
ratio = 1.0/data->ratio;
|
ratio = 1.0/data->ratio;
|
||||||
|
|
||||||
while(inp!=inp_max){
|
while(inp != inp_max)
|
||||||
while(re->fraction>1){
|
{
|
||||||
|
while(re->fraction > 1)
|
||||||
|
{
|
||||||
*outp++=*inp;
|
*outp++=*inp;
|
||||||
re->fraction-=ratio;
|
re->fraction-=ratio;
|
||||||
}
|
}
|
||||||
@ -59,7 +62,8 @@ static void resampler_nearest_free(void *re_)
|
|||||||
|
|
||||||
static void *resampler_nearest_init(double bandwidth_mod)
|
static void *resampler_nearest_init(double bandwidth_mod)
|
||||||
{
|
{
|
||||||
rarch_nearest_resampler_t *re = (rarch_nearest_resampler_t*)calloc(1, sizeof(rarch_nearest_resampler_t));
|
rarch_nearest_resampler_t *re = (rarch_nearest_resampler_t*)
|
||||||
|
calloc(1, sizeof(rarch_nearest_resampler_t));
|
||||||
if (!re)
|
if (!re)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user