mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-27 21:27:12 +00:00
(Nearest Resampler) C89 build fixes
This commit is contained in:
parent
46055eb47b
commit
8dc95da1ac
@ -6,7 +6,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef RESAMPLER_TEST
|
||||
#if !defined(RESAMPLER_TEST) && defined(RARCH_INTERNAL)
|
||||
#include "../../general.h"
|
||||
#else
|
||||
#define RARCH_LOG(...) fprintf(stderr, __VA_ARGS__)
|
||||
@ -15,29 +15,23 @@
|
||||
typedef struct rarch_nearest_resampler
|
||||
{
|
||||
float fraction;
|
||||
}rarch_nearest_resampler_t;
|
||||
} rarch_nearest_resampler_t;
|
||||
|
||||
typedef struct audio_frame_float
|
||||
{
|
||||
float l;
|
||||
float r;
|
||||
} audio_frame_float_t;
|
||||
|
||||
static void resampler_nearest_process(void *re_,
|
||||
struct resampler_data *data)
|
||||
{
|
||||
(void)re_;
|
||||
float ratio;
|
||||
|
||||
rarch_nearest_resampler_t *re = (rarch_nearest_resampler_t*)re_;
|
||||
|
||||
typedef struct audio_frame_float
|
||||
{
|
||||
float l;
|
||||
float r;
|
||||
}audio_frame_float_t;
|
||||
|
||||
|
||||
audio_frame_float_t *inp = (audio_frame_float_t*)data->data_in;
|
||||
audio_frame_float_t *inp_max = inp + data->input_frames;
|
||||
audio_frame_float_t *outp = (audio_frame_float_t*)data->data_out;
|
||||
|
||||
ratio = 1.0/data->ratio;
|
||||
float ratio = ratio = 1.0/data->ratio;
|
||||
|
||||
while(inp != inp_max)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user