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.
我正在开发一个 iOS 应用程序,我正在从设备麦克风录制声音,将其保存为 wav,然后需要从不同的视图控制器访问和播放它。据我了解,FMOD::System 对象只能在一个视图控制器中定义。
在多个视图控制器中访问 FMOD 的最佳方法是什么?
我曾尝试使用 Singleton 类,但是由于 Objective-c 缺少类(非实例)变量,我不确定如何声明 FMOD::System 变量。
有没有人成功地实现了我想要做的事情?任何帮助表示赞赏!
谢谢
I ended up making a singleton class and got it working.
If anyone would like help doing the same just ask.