Audio HAL implementation from scratch