Fix syntax error in call to ao_play()
samples_in is an instance variable, prefix it with ad->
Cast samples_in to samples_out with reinterpret_cast<int16_t*>
Include cstring header for memset()