Frage

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!

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top