Lines Matching defs:sample
307 int delta_width_modifier, delta_width, delta_negative, delta, sample ;
311 sample = pdwvw->last_sample ;
338 /* Calculate the sample */
339 sample += delta ;
341 if (sample >= pdwvw->max_delta)
342 sample -= pdwvw->span ;
343 else if (sample < - pdwvw->max_delta)
344 sample += pdwvw->span ;
346 /* Store the sample justifying to the most significant bit. */
347 ptr [count] = arith_shift_left (sample, 32 - pdwvw->bit_width) ;
354 pdwvw->last_sample = sample ;