Commit e0e95c4a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

float: fix copy-paste error in double precision amp

parent 798ee1ab
......@@ -61,7 +61,7 @@ static void FilterFL32( audio_volume_t *p_volume, block_t *p_buffer,
return; /* nothing to do */
float *p = (float *)p_buffer->p_buffer;
for( size_t i = p_buffer->i_buffer / sizeof(float); i > 0; i-- )
for( size_t i = p_buffer->i_buffer / sizeof(*p); i > 0; i-- )
*(p++) *= f_multiplier;
(void) p_volume;
......@@ -75,7 +75,7 @@ static void FilterFL64( audio_volume_t *p_volume, block_t *p_buffer,
if( mult == 1. )
return; /* nothing to do */
for( size_t i = p_buffer->i_buffer / sizeof(float); i > 0; i-- )
for( size_t i = p_buffer->i_buffer / sizeof(*p); i > 0; i-- )
*(p++) *= mult;
(void) p_volume;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment