Browse Source

avfilter/af_sofalizer: use float constants

tags/n4.2
Paul B Mahol 6 years ago
parent
commit
8e4e2c9e40
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/af_sofalizer.c

+ 2
- 2
libavfilter/af_sofalizer.c View File

@@ -152,7 +152,7 @@ static int preload_sofa(AVFilterContext *ctx, char *filename, int *samplingrate)
mysofa_loudness(s->sofa.hrtf); mysofa_loudness(s->sofa.hrtf);


if (s->minphase) if (s->minphase)
mysofa_minphase(s->sofa.hrtf, 0.01);
mysofa_minphase(s->sofa.hrtf, 0.01f);


mysofa_tocartesian(s->sofa.hrtf); mysofa_tocartesian(s->sofa.hrtf);


@@ -466,7 +466,7 @@ static int sofalizer_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr,
for (j = 0; j < n_read; j++) { for (j = 0; j < n_read; j++) {
/* initialize output buf with saved signal from overflow buf */ /* initialize output buf with saved signal from overflow buf */
dst[mult * j] = ringbuffer[wr]; dst[mult * j] = ringbuffer[wr];
ringbuffer[wr] = 0.0; /* re-set read samples to zero */
ringbuffer[wr] = 0.0f; /* re-set read samples to zero */
/* update ringbuffer read/write position */ /* update ringbuffer read/write position */
wr = (wr + 1) & modulo; wr = (wr + 1) & modulo;
} }


Loading…
Cancel
Save