문제

How can I access the instance of the SPTCoreAudioController that is associated with my instance of a SPTAudioStreamingController?

I need to assign a SPTCoreAudioControllerDelegate so that I may handle coreAudioController:didOutputAudioOfDuration in order to, as you say, "keep track of how much audio has been played back for progress indicators and so on".

Thanks!

도움이 되었습니까?

해결책

You retrieve it from wherever you put it. If you initialise like this…

self.coreAudio = [MyAwesomeCoreAudioController new];
self.streaming = [[SPTAudioStreamingController alloc]
                      initWithCompanyName:@"DanCorp"
                                  appName:@"MyApp"
                          audioController:self.coreAudio];

…you can access it with self.coreAudio.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top