android - Web Audio API equivalent for iOS, Android, React Native?
问题描述
Web Audio API allows us to play synthesized sound. What if you're working with React Native? For example, consider a mobile app that is a piano. How do I make the sound?
I am not looking for a library that helps to play or record audio files.
Ideally, I want https://tonejs.github.io/ for iOS/Android
解决方案
当为 web 构建时,expo-av包对 iOS 和 Android 未使用的平台代码进行了树形摇动。当前的平台兼容性包括 Android Device、Android Emulator、iOS Device、iOS Simulator 和 Web。
推荐阅读
- c# - 将 LINQ 表达式转换为 SQL Server 存储过程
- c - Unsigned long long 不同的结果
- java - 文件的相对路径 | 弹簧靴
- compiler-warnings - 如何为 Purescript 中未使用的参数/模式变量启用警告?
- c++ - 回调和函数指针有什么关系?
- java - 如何使用数组使用随机生成的值计算百分比?
- python - 如何保护 IBM Cloud 中的配置文件
- sonarqube - 自 SQ 7.2.1 以来如何使用自定义插件修复“以下语言没有内置质量配置文件”
- javascript - 我们如何知道 React 的 ref.current 值何时发生了变化?
- python-3.x - 获取 datetime.datetime(2019, 4, 24, 20, 40, 57) 作为值但需要转换为实际日期和时间