Backport sound fix from NXEngine-IOS (https://github.com/PIlin/NXEngine-iOS/commit/9bac31643406be595c12e6225fd822c0ee8665b4#L0L40)