The bps variable is declared with value aiff->bps, read once and never written. aiff->bps can be used directly instead.