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.
目前我在我的 iPhone 应用程序中使用“GN_Music_SDK_iOS”SDK。我刚开始使用[GNOperations recognizeMIDStreamFromMic:responseObject config:config];方法录制音乐,然后它正在通过GNStatusChanged:方法给出录制状态。但是根据我的应用需求,我需要自己停止录制,也就是点击某个按钮。如何停止录制音乐并继续使用 Gracenote SDK 进行搜索?
[GNOperations recognizeMIDStreamFromMic:responseObject config:config];
GNStatusChanged:
在 Gracenote SDK 中,他们只是调用 [GNOperations cancelAll]; 从按钮 IBAction 取消收听。除了这个,你还想要什么吗?