Getting pcm audio for visualization via Spotify iOS SDK

We are currently looking at our music visualization software, which has been running for many years in an iOS application that plays music through the new iOS Spotify SDK - check out http://soundspectrum.com to see our visual effects, such as G- Force and Aeon.

In any case, we have demo projects in the Spotify iOS SDK SDOT, and everything looks good, but the main step forward is to gain access to pcm audio so that we can send it to our visual engines, etc.

Can Spotify dev or someone you know kindly suggest what options are available for listening to pcm audio? The pcm audio block can be as simple as a circular buffer of several thousand recent samples (which we will use for FFT, etc.).

Thanks in advance!

+3
source share
1 answer

Subclass SPTCoreAudioControllerand complete one of two tasks:

  • connectOutputBus:ofNode:toInputBus:ofNode:inGraph:error: AudioUnitAddRenderNotify(), destinationNode. , node , . , , , super Spotify iOS SDK.

  • attemptToDeliverAudioFrames:ofCount:streamDescription:. PCM, . , , , , , 1 . super , .

, , SPTAudioStreamingController, .

1 API iTunes Mac OS X Spotify, CocoaLibSpotify. 100% ( , - runloops ..), G-Force Whitecap. , VivaCoreAudioController.m. CocoaLibSpotify , SDK iOS.

+7

Source: https://habr.com/ru/post/1629240/


All Articles