Audio¶
-
class
spotify.AudioBufferStats[source]¶ Stats about the application’s audio buffers.
-
samples¶ Number of samples currently in the buffer.
-
stutter¶ Number of stutters (audio dropouts) since the last query.
-
-
class
spotify.AudioFormat(sp_audioformat)[source]¶ A Spotify audio format object.
You’ll never need to create an instance of this class yourself, but you’ll get
AudioFormatobjects as theaudio_formatargument to themusic_deliverycallback.-
property
sample_type¶ The
SampleType, currently alwaysSampleType.INT16_NATIVE_ENDIAN.
-
property
sample_rate¶ The sample rate, typically 44100 Hz.
-
property
channels¶ The number of audio channels, typically 2.
-
property