audio: waves: check array index
am: b22c5bed61

Change-Id: Ifbd7c3cb41a5e3a91a59ff493d336659a4354193