Cog/Audio/ThirdParty/r8bstate.h
Christopher Snowhill 2e45deb8d3 [Audio Output] Resample unsupported sample rates
These rates are too high for Apple's output routines, for some reason.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-06-24 03:47:19 -07:00

33 lines
638 B
C

//
// r8bstate.h
// CogAudio Framework
//
// Created by Christopher Snowhill on 6/24/22.
//
#include <stdint.h>
#include <stdlib.h>
#ifndef r8bstate_h
#define r8bstate_h
#ifdef __cplusplus
extern "C" {
#endif
void *r8bstate_new(int channelCount, int bufferCapacity, double srcRate,
double dstRate);
void r8bstate_delete(void *);
double r8bstate_latency(void *);
int r8bstate_resample(void *, const float *input, size_t inCount, size_t *inDone,
float *output, size_t outMax);
int r8bstate_flush(void *, float *output, size_t outMax);
#ifdef __cplusplus
}
#endif
#endif /* r8bstate_h */