minor fixes
parent
5fa7eeb9a3
commit
9f816d9883
9
src/cr.c
9
src/cr.c
|
@ -111,7 +111,14 @@ static void dft_stage_fn(stage_t * p, fifo_t * output_fifo)
|
|||
|
||||
for (portion <<= 1; i < f->dft_length; i += portion, portion <<= 1) {
|
||||
memcpy((char *)dft_out + (size_t)i * sizeof_real, dft_out, (size_t)portion * sizeof_real);
|
||||
((char *)dft_out)[((size_t)i + 1) * sizeof_real] = 0;
|
||||
if (IS_FLOAT32)
|
||||
#define dft_out ((float *)dft_out)
|
||||
dft_out[i + 1] = 0;
|
||||
#undef dft_out
|
||||
else if (WITH_FLOAT64)
|
||||
#define dft_out ((double *)dft_out)
|
||||
dft_out[i + 1] = 0;
|
||||
#undef dft_out
|
||||
}
|
||||
if (p->step.integer > 0)
|
||||
rdft_reorder_back(f->dft_length, f->dft_backward_setup, dft_out, p->dft_scratch);
|
||||
|
|
|
@ -374,7 +374,7 @@ soxr_t soxr_create(
|
|||
char const * e = getenv("SOXR_TRACE");
|
||||
_soxr_trace_level = e? atoi(e) : 0;
|
||||
{
|
||||
char const arch[] = {_(char), _(short), _(int), _(long), _(long long)
|
||||
static char const arch[] = {_(char), _(short), _(int), _(long), _(long long)
|
||||
, ' ', _(float), _(double), _(long double)
|
||||
, ' ', _(int *), _(int (*)(int))
|
||||
, ' ', HAVE_BIGENDIAN ? 'B' : 'L'
|
||||
|
|
|
@ -256,10 +256,10 @@ struct soxr_quality_spec { /* Typically */
|
|||
|
||||
|
||||
struct soxr_runtime_spec { /* Typically */
|
||||
unsigned log2_min_dft_size; /* For DFT efficiency. [8,15] 11 */
|
||||
unsigned log2_min_dft_size; /* For DFT efficiency. [8,15] 10 */
|
||||
unsigned log2_large_dft_size; /* For DFT efficiency. [8,20] 17 */
|
||||
unsigned coef_size_kbytes; /* For SOXR_COEF_INTERP_AUTO (below). 400 */
|
||||
unsigned num_threads; /* If built so. 0 means `automatic'. 1 */
|
||||
unsigned num_threads; /* 0: per OMP_NUM_THREADS; 1: 1 thread. 1 */
|
||||
void * e; /* Reserved for internal use. 0 */
|
||||
unsigned long flags; /* Per the following #defines. 0 */
|
||||
};
|
||||
|
|
|
@ -133,7 +133,7 @@ int main(int n, char const * arg[])
|
|||
soxr_delete(soxr);
|
||||
free(obuf), free(ibuf);
|
||||
/* Diagnostics: */
|
||||
fprintf(stderr, "%-26s %s; %lu clips; I/O: %s (%s) %.2f Ms/s\n",
|
||||
fprintf(stderr, "%-26s %s; %lu clips; I/O: %s (%-5s) %.2f Ms/s\n",
|
||||
arg0, soxr_strerror(error), (long unsigned)clips,
|
||||
ferror(stdin) || ferror(stdout)? strerror(errno) : "no error", engine,
|
||||
1e-6 * k / DURATION_MSECS * chans * (double)omax);
|
||||
|
|
Loading…
Reference in New Issue