Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在活动 1 中将 MP3 文件加载到声音池中,然后在活动 5 中进一步访问它?
我一直在尝试这个没有成功。
这当然是为了减少加载时间并在所有地方使用相同的文件,而不是一遍又一遍地加载它们
谢谢!瑞安
您可以为此使用服务。无论活动状态如何,服务都可以在后台运行。看看这里
您可以在服务中初始化 soundpool 并通过您的活动访问它。