开发者

Using FMOD in multiple classes (iOS)

I am developing an iOS app where I am recording sound from the devices mic, saving it to a wav, then it needs to be accessed and played from a different view controller. As I understand, a FMOD::System object can only be defined in one view controller.

What would be th开发者_JS百科e best way to access FMOD in more than one view controller?

I have tried using a Singleton class, however with objective-c's lack of class (non-instance) variables, I am not sure how declare the FMOD::System variable.

Has anyone successfully implemented what I am trying to do? Any help appreciated!

Thanks


I ended up making a singleton class and got it working.

If anyone would like help doing the same just ask.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜