Fixed a C11 warning by adding a macro lock around blip_t declaration
parent
71e05cd4b6
commit
121d7a73e9
|
@ -679,7 +679,10 @@ typedef struct DUMB_VOLUME_RAMP_INFO DUMB_VOLUME_RAMP_INFO;
|
||||||
|
|
||||||
typedef void (*DUMB_RESAMPLE_PICKUP)(DUMB_RESAMPLER *resampler, void *data);
|
typedef void (*DUMB_RESAMPLE_PICKUP)(DUMB_RESAMPLER *resampler, void *data);
|
||||||
|
|
||||||
|
#ifndef BLIP_T_DEFINED
|
||||||
|
#define BLIP_T_DEFINED
|
||||||
typedef struct blip_t blip_t;
|
typedef struct blip_t blip_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct DUMB_RESAMPLER
|
struct DUMB_RESAMPLER
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,10 @@ Sample buffer that resamples from input clock rate to output sample rate */
|
||||||
|
|
||||||
/** First parameter of most functions is blip_t*, or const blip_t* if nothing
|
/** First parameter of most functions is blip_t*, or const blip_t* if nothing
|
||||||
is changed. */
|
is changed. */
|
||||||
|
#ifndef BLIP_T_DEFINED
|
||||||
|
#define BLIP_T_DEFINED
|
||||||
typedef struct blip_t blip_t;
|
typedef struct blip_t blip_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Creates new buffer that can hold at most sample_count samples. Sets rates
|
/** Creates new buffer that can hold at most sample_count samples. Sets rates
|
||||||
so that there are blip_max_ratio clocks per sample. Returns pointer to new
|
so that there are blip_max_ratio clocks per sample. Returns pointer to new
|
||||||
|
|
Loading…
Reference in New Issue