Cleanup: use conversion methods provided by AudioEffect.

Change-Id: Iad7d63b6faaefcc645ca42b179a370744122b2d2