Spotify Android API 音频是否以原始 PCM 格式传送?

Is Spotify Android API audio delivered in raw PCM?

我想写一个 Spotify Android 插件来在播放前执行音频预处理。

根据 com.spotify.sdk.android.player.AudioController.onAudioDataDelivered 的文档判断:

samples - 16-bit PCM data. The buffer contains sampleCount samples, whereby each sample contains the data for a single audio channel.

和现已弃用的 libspotify int( * sp_session_callbacks::music_delivery):

[in] frames Points to raw PCM data as described by format

上面的 Android onAudioDataDelivered 调用似乎会接收原始 PCM 数据(非 DRM 编码)。

谁能证实是这种情况?

是的,它是原始 PCM,您可以使用 Android SDK 连接到 PCM 播放。