Documentation ¶
Index ¶
- Variables
- func CreateCipher(key []byte) cipher.Block
- type AudioFile
- type AudioFileDecrypter
- type Channel
- type Player
- func (p *Player) AllocateChannel() *Channel
- func (p *Player) HandleCmd(cmd byte, data []byte)
- func (p *Player) LoadTrack(file *Spotify.AudioFile, trackId []byte) (*AudioFile, error)
- func (p *Player) LoadTrackWithIdAndFormat(fileId []byte, format Spotify.AudioFile_Format, trackId []byte) (*AudioFile, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AUDIO_AESIV = []byte{0x72, 0xe0, 0x67, 0xfb, 0xdd, 0xcb, 0xcf, 0x77, 0xeb, 0xe8, 0xbc, 0x64, 0x3f, 0x63, 0x0d, 0x93}
Functions ¶
func CreateCipher ¶
Types ¶
type AudioFile ¶
type AudioFile struct {
// contains filtered or unexported fields
}
AudioFile represents a downloadable/cached audio file fetched by Spotify, in an encoded format (OGG, etc)
func (*AudioFile) Read ¶
Read is an implementation of the io.Reader interface. Note that due to the nature of the streaming, we may return zero bytes when we are waiting for audio data from the Spotify servers, so make sure to wait for the io.EOF error before stopping playback.
type AudioFileDecrypter ¶
type AudioFileDecrypter struct {
// contains filtered or unexported fields
}
func NewAudioFileDecrypter ¶
func NewAudioFileDecrypter() *AudioFileDecrypter
func (*AudioFileDecrypter) DecryptAudioWithBlock ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func CreatePlayer ¶
func CreatePlayer(conn connection.PacketStream, client *mercury.Client) *Player
func (*Player) AllocateChannel ¶
func (*Player) LoadTrackWithIdAndFormat ¶
Click to show internal directories.
Click to hide internal directories.