audio: fix resampler creation

Fix a problem in out_write() where if the resampler
was to be created, the first audio buffer was not resampled
and the local write source pointer not initialized.

Also use correct types for audio format and channel mask.

Change-Id: I6b86767de439234966ebb95904eb22fc7f383829
1 file changed