Fix audio API method signatures and some compilation errors