bhyve: Address compiler warnings in audio.c
- Avoid arithmetic on void pointers.
- Avoid a signed/unsigned comparison in loops which write or fill audio data buffers.
Convert while loops to for loops while here.
(cherry picked from commit ee83710bc492c0b2e7d66dd61f45fa657a14d169)