What is the stream sample rate (libspotify)?

What is the sampling rate of the allocation stream?

The music_delivery callback function in the libspotify playtrack playback example accepts the audio format directly from libspotify. Is sound for raw wave data already decoded? Is 44.1 kHz / 16 bit sampling frequency the default? Can libspotify convert the original sampling rate to 44.1 kHz / 16 bit?

Thank.

+3
source share
1 answer

The audio you receive in the callback music_deliveryis really raw PCM data. The sampling rate and bit depth are described in the structure sp_audioformatspecified in this callback.

, , .

+4

All Articles