mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avfilter/af_sofalizer: use float constants
This commit is contained in:
parent
530fc345ec
commit
8e4e2c9e40
@ -152,7 +152,7 @@ static int preload_sofa(AVFilterContext *ctx, char *filename, int *samplingrate)
|
||||
mysofa_loudness(s->sofa.hrtf);
|
||||
|
||||
if (s->minphase)
|
||||
mysofa_minphase(s->sofa.hrtf, 0.01);
|
||||
mysofa_minphase(s->sofa.hrtf, 0.01f);
|
||||
|
||||
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++) {
|
||||
/* initialize output buf with saved signal from overflow buf */
|
||||
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 */
|
||||
wr = (wr + 1) & modulo;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user