Commit 01e7806b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

chorus_flanger: Fix a bad cast.

parent 120e7e6b
...@@ -275,8 +275,9 @@ static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter, ...@@ -275,8 +275,9 @@ static void DoWork( aout_instance_t *p_aout, aout_filter_t *p_filter,
} }
} }
/* Calculate position in delay */ /* Calculate position in delay */
int offset = floor( p_sys->f_offset );
pf_ptr = p_sys->pf_write + i_maxOffset * p_sys->i_channels + pf_ptr = p_sys->pf_write + i_maxOffset * p_sys->i_channels +
(int)( floor( p_sys->f_offset ) ) * p_sys->i_channels; offset * p_sys->i_channels;
/* Handle Overflow */ /* Handle Overflow */
if( pf_ptr < p_sys->pf_delayLineStart ) if( pf_ptr < p_sys->pf_delayLineStart )
......
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